Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   Compound Members   Related Pages  

OBJ_MINE Class Reference

A mine. More...

Inheritance diagram for OBJ_MINE:

Inheritance graph
List of all members.

Private Methods

GALOBJ Create (GALOBJ a_sector, int a_x, int a_y, int a_z, int a_raceid)
GALOBJ Destruct ()
int IsActive ()
void SetActive (int a_active)
void SelfDestruct (int a_reason)
void KilledBy (int a_reason, SECOBID a_skiller, SECOBID a_sother)
SECOBID Activate ()
void StartAction ()
int GetClass ()
int IsClass (int cl)

Detailed Description

A mine.

It is not activated by other mines of same owner (tight minefields possible) but it can damage owner-ship. Damage decreases linear with inc. distance (ca. 700 meters).


Member Function Documentation

SECOBID Activate   [private]
 

activates ship-object in sector

Reimplemented from OBJ_SHIP.

GALOBJ Create GALOBJ    a_sector,
int    a_x,
int    a_y,
int    a_z,
int    a_raceid
[private]
 

Creates a mine that belongs to a given race.

GALOBJ Destruct   [private]
 

Removes mine (does not blow up).

Reimplemented from OBJ_SHIP.

int GetClass   [private]
 

returns "OBJ_MINE"

Reimplemented from OBJ_SHIP.

int IsActive   [private]
 

Returns whether the mine is activated.

int IsClass int    cl [private]
 

Functions common in every object

Reimplemented from OBJ_SHIP.

void KilledBy int    a_reason,
SECOBID    a_skiller,
SECOBID    a_sother
[private]
 

See Functions common in every object.

Reimplemented from OBJ_SHIP.

void SelfDestruct int    a_reason [private]
 

See Functions common in every object.

Reimplemented from OBJ_SHIP.

void SetActive int    a_active [private]
 

TRUE sets the mine active and FALSE inactive.

void StartAction   [private]
 

StartAction defines which command is the default. Here it is COMMAND_NONE.

Reimplemented from OBJ_SHIP.


Generated on Mon Aug 26 18:26:26 2002 for X² KC by doxygen1.2.17