YAPOG  0.0.1
Yet Another Pokemon Online Game
PlayerTime.cpp
Go to the documentation of this file.
2 
3 namespace yap
4 {
6  : playTime_ ()
7  , currentSessionTime_ ()
8  {
9  }
10 
11  void PlayerTime::UpdateTime (const Time& dt)
12  {
13  playTime_ += dt;
14  currentSessionTime_ += dt;
15  }
16 
17  // Getters
18  const Time& PlayerTime::GetPlayTime () const
19  { return playTime_; }
21  { return currentSessionTime_; }
22 
23  // Setters
24  void PlayerTime::RawSetPlayTime (const Time& value)
25  {
26  playTime_ = value;
27  }
28 
29 } // namespace yap