|
StarTrekV3_Linux
Version3
|
#include <Probe.h>
Inherits TSprite.
Public Member Functions | |
| TProbe (double a_dX, double a_dY, double a_dSpeed, double a_dAngle, int a_nZ, TEnterprise *a_pOwner) | |
| Constructs a probe. More... | |
| TProbe () | |
| default constructor More... | |
| void | Do_ai () |
| AI entry point. More... | |
| void | Draw (double a_dCamX, double a_dCamY) |
| probe drawing More... | |
Public Member Functions inherited from TSprite | |
| virtual void | Move (double a_dLagCount) |
| ** VIRTUAL ** Move the sprite according to its speed. Called by Engine More... | |
| virtual void | DoCollision (TSprite *const a_pSprite) |
| ** VIRTUAL ** Handle collision if m_blCanCollide is true Called by Engine More... | |
| void | SetPosition (double a_dX, double a_dY, double a_dAngle) |
| Sets the position of this sprite. More... | |
| void | SetPosition (double a_dX, double a_dY) |
| Sets the position of this sprite. More... | |
| void | SetHeight (int a_nHeight) |
| Sets the Height Z position ( drawing order) More... | |
| void | SetSpeed (double a_dSpeed) |
| Sets the Speed. More... | |
| void | SetImage (ALLEGRO_BITMAP *a_pImage) |
| Sets the Image of the sprite. More... | |
| double | GetX () |
| Get the X position. More... | |
| double | GetY () |
| Get the Y position. More... | |
| TSprite () | |
| Basic sprite constructor. More... | |
| virtual | ~TSprite () |
Static Public Member Functions | |
| static bool | Init () |
| Class initialization. More... | |
Friends | |
| class | TEngine |
Additional Inherited Members | |
Public Attributes inherited from TSprite | |
| bool | m_blDestroyed |
| bool | m_blCanCollide |
| bool | m_blCanFind |
| MEMBER | m_Member |
| A sprite can be associated with a certain group (Federation, Klingon etc.) More... | |
| ID | m_ID |
| an ID providig some runtime type information More... | |
Protected Attributes inherited from TSprite | |
| TEngine * | m_pEngine |
| Pointer to the engine. More... | |
| ALLEGRO_BITMAP * | m_pImage |
| pointer to a bitmap representing this sprite More... | |
| int | m_nZ |
| Z drawing order ( Depth) More... | |
| double | m_dAngle |
| double | m_dX |
| double | m_dY |
| double | m_dSpeed |
| int | m_nBitmapWidth |
| int | m_nBitmapHeight |
| int | m_nBitmapMidX |
| int | m_nBitmapMidY |
Probes can be launched from the Enterprise. When they hit something they will scan it and send the information to the enterprise Where the information will be displayed in a probe rapport. When a probe crosses the sector bounds,, a sector area will be scanned instead of an object. This will be shown on the navigation screen with updated information.
| TProbe::TProbe | ( | double | a_dX, |
| double | a_dY, | ||
| double | a_dSpeed, | ||
| double | a_dAngle, | ||
| int | a_nZ, | ||
| TEnterprise * | a_pOwner | ||
| ) |
Constructs a probe.
| a_dX | X start position |
| a_dY | Y start position |
| a_dSpeed | probe starting speed |
| a_dAngle | probe angle |
| a_nZ | probe depth (Z order) |
| TProbe::TProbe | ( | ) |
default constructor
|
virtual |
AI entry point.
Reimplemented from TSprite.
|
virtual |
probe drawing
Reimplemented from TSprite.
|
static |
Class initialization.
|
friend |