Skip to content

Instantly share code, notes, and snippets.

@Virako
Created December 15, 2012 15:05
Show Gist options
  • Save Virako/4296105 to your computer and use it in GitHub Desktop.
Save Virako/4296105 to your computer and use it in GitHub Desktop.
player.hpp es un ejemplo sin terminar.
// 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