![]() |
Public API Reference |
This is a projectile property class. More...
#include <propclass/projectile.h>
Public Member Functions | |
| virtual void | Interrupt ()=0 |
| Interrupt a movement. | |
| virtual bool | IsMoving () const =0 |
| Return true if currently moving. | |
| virtual bool | Start (const csVector3 &direction, float speed, float maxdist, int maxhits)=0 |
| Start a movement of this projectile from its current position. | |
This is a projectile property class.
This class controls movement of a projectile from one spot to another (or in some direction).
This property class can send out the following messages:
This property class supports the following actions (add prefix 'cel.move.projectile.action.' if you want to access this action through a message):
This property class supports the following properties:
Definition at line 47 of file projectile.h.
| virtual void iPcProjectile::Interrupt | ( | ) | [pure virtual] |
Interrupt a movement.
| virtual bool iPcProjectile::IsMoving | ( | ) | const [pure virtual] |
Return true if currently moving.
| virtual bool iPcProjectile::Start | ( | const csVector3 & | direction, |
| float | speed, | ||
| float | maxdist, | ||
| int | maxhits | ||
| ) | [pure virtual] |
Start a movement of this projectile from its current position.
| direction | is the direction to go in. |
| speed | is the speed in units per second. |
| maxdist | is the maximum distance to move at which point we will stop and send a pcprojectile_stopped message. |
| maxhits | is the maximum number of hits at which point we will stop and send a pcprojectile_stopped message. |