YAPOG  0.0.1
Yet Another Pokemon Online Game
PlayerDataTable.hpp
Go to the documentation of this file.
1 #ifndef YAPOG_PLAYERDATATABLE_HPP
2 # define YAPOG_PLAYERDATATABLE_HPP
3 
4 # include "YAPOG/Macros.hpp"
5 # include "YAPOG/Game/ID.hpp"
8 
9 namespace yse
10 {
11  class PlayerData;
12 
13  class PlayerDataTable : public ITable
14  {
16  public:
17  explicit PlayerDataTable (const yap::ID& accountID);
18 
19  void LoadFromPlayerData (const PlayerData& playerData);
20 
21  void DisplayData ();
22 
24  const yap::ID& GetAccountID () const;
25  const yap::Vector2& GetPosition () const;
26  const yap::ID& GetMapID () const;
27  int GetPlayTime () const;
28  int GetStepCount () const;
29  const yap::Vector2& GetRespawnSpot () const;
30  int GetFleeCount () const;
31  int GetBoxNumber () const;
32  int GetBattleCount () const;
33  int GetMoney () const;
34 
36  void SetAccountID (const yap::ID& value);
37  void SetPosition (const yap::Vector2& value);
38  void SetMapID (const yap::ID& value);
39  void SetPlayTime (int value);
40  void SetStepCount (int value);
41  void SetRespawnSpot (const yap::Vector2& value);
42  void SetFleeCount (int value);
43  void SetBoxNumber (int value);
44  void SetBattleCount (int value);
45  void SetMoney (int value);
46 
47  private:
51  int playTime_;
57  int money_;
58  };
59 } // namespace yse
60 
61 #endif // YAPOG_PLAYERDATATABLE_HPP