Public feed #723253

Unnamed

public text v1 · immutable
Raw Edit
·published 2007-10-02 17:26 UTC
rendered paste body
#ifndef Player_Class_H
#define Player_Class_H

#include "SDL_Side_G.h"

class Creature
{
    private:

    //Health
    int HP;
    //Race
    enum race 
    {
        Slayer, Vampire, Werewolf, Human
    };
    
    //Power
    int Power;
    //Location
    Coordinates Location;
    int Facing;
    
    //Images for poses
    SDL_Surface *Left[2];
    SDL_Surface *Right[2];
    SDL_Surface *Up[2];
    SDL_Surface *Down[2];
    
    public:

    int SetLoc();
    int SetHP();
    int SetFacing();
    int SetPower();
    void SetRace();
    Coordinates ReturnLocation();
    
};

int Creature::SetFacing() {return 0;}
int Creature::SetLoc()
{
    Location.X=20;
    Location.Y=20;
    return 0;
}



int Creature::SetHP() {return 0;}
int Creature::SetPower() {return 0;}
void Creature::SetRace() {return 0;}

Coordinates Creature::ReturnLocation()
{
    return Location;
};



class Player
{
    private:
    
    //Creature qualities
    Creature Base;
    //Target
    int Target;
    
    
    public:
    
    int Move();
    int Attack();
    int Set_Target();
    
};

int Player::Move() {return 0;};
int Player::Attack() {return 0;};
int Player::Set_Target() {return 0;};

#endif