
Pokemon Project
Dependencies: C12832 LM75B MMA7660 mbed
Diff: player.h
- Revision:
- 0:cec9a625dfb9
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/player.h Mon Jan 23 17:28:34 2017 +0000 @@ -0,0 +1,28 @@ +#include <string> +// Init var +typedef unsigned int uns; +extern std::string TYPEStr[3]; +typedef enum Type {FIRE, WATER, GRASS} Type_e; + +// Class player +class Player { + public: + Player(); + Player(uns, uns, Type_e); + //fight + int fight(Player p); + //lvlup + void lvlUp(); + void checkEXP(); + //setting + void setType(Type_e); + std::string toString(void); + + protected: + //stats + uns lvl; + Type_e type; + uns attackDmg; + uns exp; + float crit; +}; \ No newline at end of file