Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/gameconnection.h')
-rw-r--r--src/core/gameconnection.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/core/gameconnection.h b/src/core/gameconnection.h
index 5880f9b..22af910 100644
--- a/src/core/gameconnection.h
+++ b/src/core/gameconnection.h
@@ -18,7 +18,7 @@ class GameConnection : public GameInterface
{
public:
GameConnection(std::string const &connectionstr);
- ~GameConnection();
+ virtual ~GameConnection();
/*----- inspectors ------------------------------------------------ */
@@ -29,10 +29,13 @@ public:
inline bool error() const { return !connection_running; }
/// returns true if the game is running an interactive module
- inline bool interactive() const { return true; }
+ virtual bool interactive() const;
+
+ /// return the current game time in seconds
+ virtual float time() const;
/// return the current game time
- inline unsigned long timestamp() const { return connection_timestamp; }
+ virtual unsigned long timestamp() const;
/*----- mutators -------------------------------------------------- */