1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
|
michael@caitlyn current-ourrpg $ cat ally.h
#ifndef ALLY_H
#define ALLY_H
#include "character.h"
#include <SDL/SDL.h>
class AllyJobClass : Job
{
enum JOBCLASS
{
BARD,
BLACKBELT,
BLACKMAGE,
DARKKNIGHT,
DEVOUT,
DRAGOON,
EVOKER,
ONIONKNIGHT,
GEOMANCER,
KNIGHT,
MAGUS,
MONK,
NINJA,
RANGER,
REDMAGE,
SAGE,
SCHOLAR,
SUMMONER,
THIEF,
VIKING,
WARRIOR,
WHITEMAGE
};
};
class Ally : public Character
{
public:
Ally() { this->image = NULL; }
Ally(char* name, int jobclass);
~Ally();
void setCurrentSprite(int index);
SDL_Surface* getCurrentSprite();
private:
enum STATE { FIGHT, WALK, RAISE, STRIKE, HIT, HURT, DEAD};
SDL_Surface* image;
};
#endif
|