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
2012-09-14 20:39:56 +02:00

37 lines
665 B
C++

/*
* Enemy.h
*
* Created on: 10.09.2012
* Author: Felix
*/
#ifndef DG_ENEMY_H_
#define DG_ENEMY_H
#include "../abstract/Actor.h"
#include "../abstract/Sprite.h"
#include "../util/Collection.h"
#include "../util/Vector.h"
class Actor;
class Sprite;
class Collection;
class Enemy : public Sprite, public Actor {
// Public functions.
public:
Enemy(b2World& world, const Vector2f& position, Collection& collection);
~Enemy();
// Private functions.
private:
void onThink(float elapsedTime);
void onDeath();
// Private variablese.
private:
b2World& mWorld;
Collection& mCollection;
};
#endif /* DG_ENEMY_H_ */