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.
2012-09-14 18:33:32 +00:00
|
|
|
/*
|
|
|
|
* Enemy.h
|
|
|
|
*
|
|
|
|
* Created on: 10.09.2012
|
|
|
|
* Author: Felix
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef DG_ENEMY_H_
|
|
|
|
#define DG_ENEMY_H
|
|
|
|
|
2012-10-04 17:10:12 +00:00
|
|
|
#include "../Instances.h"
|
2012-10-01 09:02:44 +00:00
|
|
|
#include "../abstract/Character.h"
|
2012-09-14 18:33:32 +00:00
|
|
|
#include "../util/Collection.h"
|
|
|
|
#include "../util/Vector.h"
|
2012-10-12 17:34:07 +00:00
|
|
|
#include "../util/Yaml.h"
|
2012-09-14 18:33:32 +00:00
|
|
|
|
2012-10-01 09:02:44 +00:00
|
|
|
class Character;
|
2012-09-14 18:39:56 +00:00
|
|
|
class Collection;
|
2012-10-04 17:10:12 +00:00
|
|
|
class Instances;
|
2012-10-12 17:34:07 +00:00
|
|
|
class Yaml;
|
2012-09-14 18:39:56 +00:00
|
|
|
|
2012-10-01 09:13:26 +00:00
|
|
|
class Enemy : public Character {
|
2012-09-14 18:33:32 +00:00
|
|
|
// Public functions.
|
|
|
|
public:
|
2012-10-12 17:34:07 +00:00
|
|
|
Enemy(const Instances& instances, const Vector2f& position, const Yaml& config);
|
2012-09-14 18:33:32 +00:00
|
|
|
|
|
|
|
// Private functions.
|
|
|
|
private:
|
|
|
|
void onThink(float elapsedTime);
|
|
|
|
|
|
|
|
// Private variablese.
|
|
|
|
private:
|
|
|
|
b2World& mWorld;
|
|
|
|
Collection& mCollection;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* DG_ENEMY_H_ */
|