Public feed #726602

I

public cpp v1 · immutable
Raw Edit
·published 2007-10-05 11:01 UTC
rendered paste body
#include <string>class Character{private:	//The coordinats	int x, y;	//The surface representing the character	SDL_Surface *avatar;public:	//Constructor	Character (std::string avatar_filename, int X, int Y);	//Destructor	~Character ();	//Handle events (both human and AI)	virtual void handle_events ();	//Shows the character	void show ();};class Human : public Character{public:	Human(std::string avatar_filename, int X, int Y) : Character(avatar_filename, X, Y)		//Handles the events	void handle_events ();};