#include <bolt.h>
Inherits IdCollidable.
Inherited by _classes_ [private].
Inheritance diagram for Bolt:


Public Methods | |
| void | calculateCollideKey () |
| void | collide (class Spectre *oth) |
| Bolt () | |
| Bolt (std::string name, const Matrix &pos, int id=-1) | |
| void | setPosition (const QVector &newPos) |
| CollideKey | getCollideKey () |
| CollideKey | recalculateCollideKey () |
| 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... | |
Protected Attributes | |
| CollideKey | collideKey |
|
|
00029 : IdCollidable (), collideKey (0) {} |
|
||||||||||||||||
|
00023 : IdCollidable (name, mat, id), collideKey (getPosition().Magnitude2d()) { 00024 } |
|
|
00022 {
00023 collideKey.radius=getPosition().Magnitude2d();
00024 }
|
|
|
Changes the collideKey to another ColldieKey (usually returned from the above function).
00044 {
00045 collideKey=key;
00046 }
|
|
|
|
|
|
00036 {
00037 return collideKey;
00038 }
|
|
|
Returns the collideKey based on the position, but does not change the key (use changeKey below to change it).
00040 {
00041 return CollideKey(getPosition().Magnitude2d());
00042 }
|
|
|
|
|
|
|
1.2.15