Created
December 15, 2012 15:05
-
-
Save Virako/4296105 to your computer and use it in GitHub Desktop.
player.hpp es un ejemplo sin terminar.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Include guard | |
//* Para que compilador no compile dos veces lo mismo | |
#ifndef __CHARACTER_H | |
#define __CHARACTER_H | |
#endif | |
#ifndef __PLAYER_H | |
#define __PLAYER_H | |
//forward declared dependences | |
//include dependences | |
#include <string>; | |
class player : public character | |
{ | |
// static constants | |
static const int size_inventary = 20; | |
private: | |
int type_class; | |
std::string user; | |
std::string password; | |
public: | |
//CONSTRUCTORS | |
player(int id, int type_class, std::string user, std::string password); | |
//DESTRUCTORS | |
~player(); | |
//Getters | |
// int check_user_pass{return valid;} | |
int get_type_class(){return type_class;} | |
//Setters | |
}; | |
#endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment