#include <spectre.h>
Inherits IdCollidable.
Inherited by _classes_ [private]
.
Inheritance diagram for Spectre:
Public Methods | |
void | collide (Spectre *oth) |
Spectre () | |
Spectre (std::string name, const Matrix &mat, int surface, int id=-1) | |
void | setPosition (const QVector &newPos) |
void | update () |
figures out what to do next? More... | |
void | draw (class Surface *par) |
CollideKey | recalculateCollideKey () const |
Returns the collideKey based on the position, but does not change the key (use changeKey below to change it). More... | |
void | changeKey (const CollideKey &key) |
Changes the collideKey to another ColldieKey (usually returned from the above function). More... | |
CollideKey | getCollideKey () |
The CollideKey based on the position of the Collidable . More... | |
Protected Attributes | |
CollideKey | collideKey |
Private Methods | |
void | calculateCollideKey (int surface) |
Private Attributes | |
float | shields |
int | ammo |
AutoCloner< AI > | ai |
|
00039 : IdCollidable () {} |
|
00035 : IdCollidable (name, mat, id), collideKey (surface, getPosition().Magnitude2d()) { 00036 } |
|
00031 { 00032 collideKey.radius=getPosition().Magnitude2d(); 00033 collideKey.surface=surface; 00034 } |
|
Changes the collideKey to another ColldieKey (usually returned from the above function).
00055 { 00056 collideKey=key; 00057 } |
|
|
|
|
|
The CollideKey based on the position of the Collidable .
00059 { 00060 return collideKey; 00061 } |
|
Returns the collideKey based on the position, but does not change the key (use changeKey below to change it).
00051 { 00052 return CollideKey(collideKey.surface, getPosition().Magnitude2d()); 00053 } |
|
|
|
figures out what to do next?
|
|
|
|
|
|
|
|
|