![]() |
OpenXcom
1.0
Open-source clone of the original X-Com
|
Public Member Functions | |
| void | setType (CraftWeaponProjectileType type) |
| Sets projectile type. This determines it's speed. | |
| CraftWeaponProjectileType | getType () const |
| Returns projectile type. | |
| CraftWeaponProjectileGlobalType | getGlobalType () const |
| Returns projectile global type. | |
| void | setDirection (const int &directon) |
| Sets projectile direction. This determines it's initial position. | |
| int | getDirection () const |
| Gets projectile direction. | |
| void | move () |
| Moves projectile in _direction with _speed. | |
| int | getPosition () const |
| Gets projectile position. | |
| void | setPosition (const int &position) |
| Sets projectile position. | |
| void | setHorizontalPosition (int position) |
| Sets horizontal position. This determines from which weapon projectile has been fired. | |
| int | getHorizontalPosition () const |
| Gets horizontal position. | |
| void | remove () |
| Marks projectile to be removed. | |
| bool | toBeRemoved () const |
| Returns true if the projectile should be removed. | |
| int | getState () const |
| Returns state of the beam. | |
| void | setDamage (const int &damage) |
| Sets power of the projectile. | |
| int | getDamage () const |
| Gets power of the projectile. | |
| void | setAccuracy (const int &accuracy) |
| Sets accuracy of the projectile. | |
| int | getAccuracy () const |
| Gets accuracy of the projectile. | |
| void | setMissed (const bool &missed) |
| Sets the projectile to missed status. | |
| bool | getMissed () const |
| Gets the projectile missed status. | |
| void | setRange (const int &range) |
| Sets maximum range of projectile. | |
| int | getRange () const |
| Gets maximum range of projectile. | |
| void | setSpeed (const int speed) |
| Sets the speed of a missile type projectile. | |
1.8.14