See the file LICENSE for the license governing this code.
LevelObject > Character > AI > Enemy
Enemy
is an AI
character which is hostile toward the player.
To use Enemy
, derive a subclass from it. See Enemies.h for examples.
#pragma once
#include "Headers.h"
class Enemy : public AI
{
public:
virtual const char* const profileName()=0;
Enemy();
virtual ~Enemy();
virtual void attackedBy(LevelObject* o);
virtual void setMood(int mood);
virtual void chooseMood();
private:
typedef AI super;
typedef Enemy self;
};
Core
Object types