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 > NPC

NPC is an AI-controlled character which is neutral or good to the player. To use NPC, derive a subclass from it. See NPCs.h for examples.

#pragma once
#include "Headers.h"

class NPC : public AI
{
	public:
		virtual const char* const profileName()=0;
		NPC();
		virtual ~NPC();
		virtual void onLock();

	private:
		typedef AI super;
		typedef NPC self;
};

Class hierarchy

 
h