This repository has been archived on 2019-12-07. You can view files and clone it, but cannot push or open issues or pull requests.
dungeon-gunner/source/sprite/Enemy.h

38 lines
647 B
C
Raw Normal View History

/*
* Enemy.h
*
* Created on: 10.09.2012
* Author: Felix
*/
#ifndef DG_ENEMY_H_
#define DG_ENEMY_H
#include "../Instances.h"
2012-10-01 09:02:44 +00:00
#include "../abstract/Character.h"
#include "../util/Collection.h"
#include "../util/Vector.h"
2012-10-01 09:02:44 +00:00
class Character;
class Collection;
class Instances;
2012-10-01 09:13:26 +00:00
class Enemy : public Character {
// Public functions.
public:
Enemy(const Instances& instances, const Vector2f& position);
~Enemy();
// Private functions.
private:
void onThink(float elapsedTime);
void onDeath();
// Private variablese.
private:
b2World& mWorld;
Collection& mCollection;
};
#endif /* DG_ENEMY_H_ */