73 #ifndef _AsteroidMinable_H__ 74 #define _AsteroidMinable_H__ 90 virtual void tick(
float dt)
override;
93 virtual void hit(
Pawn* originator,
const Vector3& force,
const btCollisionShape* cs,
float damage,
float healthdamage = 0.0f,
float shielddamage = 0.0f);
94 virtual void hit(
Pawn* originator, btManifoldPoint& contactpoint,
const btCollisionShape* cs,
float damage,
float healthdamage = 0.0f,
float shielddamage = 0.0f);
96 void setSize(
float s);
97 inline float getSize(){
return this->size;}
112 virtual void death();
118 void registerVariables();
121 virtual void putStuff();
124 virtual void spawnChildren();
void setShattering(bool b)
Definition: AsteroidMinable.h:99
Everything in Orxonox that has a health attribute is a Pawn.
Definition: Pawn.h:56
bool generateSmaller
Whether this asteroid leaves fragments.
Definition: AsteroidMinable.h:108
Shared library macros, enums, constants and forward declarations for the AsteroidMining module ...
float size
Implies health and type of dropped pickups.
Definition: AsteroidMinable.h:107
xmlelement
Definition: Super.h:519
bool doesShatter()
Definition: AsteroidMinable.h:100
Definition: AsteroidMinable.h:83
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
Mode
Definition: CorePrereqs.h:102
bool doesDropStuff()
Definition: AsteroidMinable.h:103
void setDropStuff(bool b)
Definition: AsteroidMinable.h:102
bool dropStuff
Whether this asteroid yields valuable stuff.
Definition: AsteroidMinable.h:109
#define _AsteroidMiningExport
Definition: AsteroidMiningPrereqs.h:60
float getSize()
Definition: AsteroidMinable.h:97
bool initialised
Used in relation to the constructor detour described above.
Definition: AsteroidMinable.h:116