| 2982 | |
| 2983 | |
| 2984 | int cWorld::CreateProjectile(double a_PosX, double a_PosY, double a_PosZ, cProjectileEntity::eKind a_Kind, cEntity * a_Creator, const cItem a_Item, const Vector3d * a_Speed) |
| 2985 | { |
| 2986 | cProjectileEntity * Projectile = cProjectileEntity::Create(a_Kind, a_Creator, a_PosX, a_PosY, a_PosZ, a_Item, a_Speed); |
| 2987 | if (Projectile == NULL) |
| 2988 | { |
| 2989 | return -1; |
| 2990 | } |
| 2991 | if (!Projectile->Initialize(this)) |
| 2992 | { |
| 2993 | delete Projectile; |
| 2994 | return -1; |
| 2995 | } |
| 2996 | return Projectile->GetUniqueID(); |
| 2997 | } |
| 2998 | |
| 2999 | |
| 3000 |
no test coverage detected