mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2024-12-04 08:55:51 +00:00
24 lines
414 B
C
24 lines
414 B
C
|
#ifndef SPORE_H
|
||
|
#define SPORE_H
|
||
|
|
||
|
#include "CollideEntity.h"
|
||
|
#include <list>
|
||
|
|
||
|
class Spore : public CollideEntity
|
||
|
{
|
||
|
public:
|
||
|
Spore(const Vector &position);
|
||
|
typedef std::list<Spore*> Spores;
|
||
|
static Spores spores;
|
||
|
static void killAllSpores();
|
||
|
static bool isPositionClear(const Vector &position);
|
||
|
void destroy();
|
||
|
protected:
|
||
|
void onEnterState(int state);
|
||
|
void onUpdate(float dt);
|
||
|
void onEndOfLife();
|
||
|
};
|
||
|
|
||
|
|
||
|
#endif
|