36 #ifndef _Asteroids2DStone_H__ 37 #define _Asteroids2DStone_H__ 52 virtual void tick(
float dt)
override;
53 Vector3 randomPosition (
float maxwidth,
float maxheight);
54 Vector3 randomVelocity(
float maxspeed);
55 virtual int getSize(){
return this->size;}
56 virtual bool collidesAgainst(
WorldEntity* otherObject,
const btCollisionShape* ownCollisionShape, btManifoldPoint& contactPoint)
override;
58 virtual void damage(
float damage,
float healthdamage,
float shielddamage,
Pawn* originator,
const btCollisionShape* cs)
override;
65 float MAX_SPEED = 100;
Everything in Orxonox that has a health attribute is a Pawn.
Definition: Pawn.h:56
Definition: Asteroids2D.h:51
WeakPtr wraps a pointer to an object, which becomes nullptr if the object is deleted.
Definition: CorePrereqs.h:236
The WorldEntity represents everything that can be put in a Scene at a certain location.
Definition: WorldEntity.h:72
virtual int getSize()
Definition: Asteroids2DStone.h:55
float width
Definition: Asteroids2DStone.h:64
Shared library macros, enums, constants and forward declarations for the Asteroids2D module ...
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
#define _Asteroids2DExport
Definition: Asteroids2DPrereqs.h:60
int size
Definition: Asteroids2DStone.h:63
WeakPtr< Asteroids2D > game
Definition: Asteroids2DStone.h:62
Definition: Asteroids2DStone.h:46