Wizard Fu's Cocos2dx Platformer Game Engine v1.0.1

nat@wizardfu.com

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;
};

Class hierarchy

 
h