Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2009-07-07 13:41:07 +0000
committerStijn Buys <ingar@osirion.org>2009-07-07 13:41:07 +0000
commit1f71cc5e127f6163e9163afd42453fe145defbeb (patch)
tree03384a37490395d5d7a67b034db2e8f569a54d0c /src/core/gameconnection.cc
parentfb1d166768e516a8493c16064640c98b1efa6707 (diff)
virtual functions cleanup
Diffstat (limited to 'src/core/gameconnection.cc')
-rw-r--r--src/core/gameconnection.cc16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/core/gameconnection.cc b/src/core/gameconnection.cc
index 2dc0e32..3384418 100644
--- a/src/core/gameconnection.cc
+++ b/src/core/gameconnection.cc
@@ -74,6 +74,22 @@ GameConnection::~GameConnection()
connection_instance = 0;
}
+
+unsigned long GameConnection::timestamp() const
+{
+ return connection_timestamp;
+}
+
+float GameConnection::time() const
+{
+ return ((float)(connection_timestamp) / 1000.0f);
+}
+
+bool GameConnection::interactive() const
+{
+ return true;
+}
+
Info *GameConnection::info(const std::string &label)
{
// check if we already have the info record