Changeset 540 for branches/cpp-ode/src/libmmpong/netgame.h
- Timestamp:
- 02/28/10 22:45:14 (6 months ago)
- Files:
-
- 1 modified
-
branches/cpp-ode/src/libmmpong/netgame.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/cpp-ode/src/libmmpong/netgame.h
r538 r540 5 5 #include <set> 6 6 #include <boost/thread/mutex.hpp> 7 #include <boost/date_time/posix_time/posix_time.hpp> 7 8 #include "netent.h" 8 9 #include "netent_helper.h" … … 45 46 //override in derived Game class implementing the actual 46 47 //gameplay and physics 47 virtual void advance(double step_ms) = 0; 48 //ATTENTION: the method should return exactly after the given time has passed 49 virtual void advance(const boost::posix_time::ptime endtime = boost::posix_time::microsec_clock::universal_time()) = 0; 48 50 49 virtual double get_proposed_step_ms() { return 1.0/50; };51 //virtual double get_proposed_step_ms() { return 1.0/50; }; 50 52 51 53 //override in derived client class … … 116 118 return boost::dynamic_pointer_cast<CLASS>(get_ent(entid)); 117 119 }; 120 121 boost::posix_time::ptime world_time; //time of last advance() 118 122 119 123 //only server creates NetEnts
