All pastes #635166 Raw Edit

Mine

public text v1 · immutable
#635166 ·published 2007-07-26 21:53 UTC
rendered paste body
//Character Info Class
#include <string.h>
using std::string;

class charInfo
{
      public:
      int getLevel(); //gets the players level
      void setName(); // sets the players name
      void levelUp();
      void setLevel(int level); // sets the players level
      void setHp(int hitpoint); // sets the players hit points
      int getHp(); // gets the players current hit points
      string getName(); // gets the players name
      private:
      int privlevel; // players level
      int privhp; // players hit points
      string name; // players name
};