Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/base/spacemine.h')
-rw-r--r--src/game/base/spacemine.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/game/base/spacemine.h b/src/game/base/spacemine.h
index 4f95849..3c314c2 100644
--- a/src/game/base/spacemine.h
+++ b/src/game/base/spacemine.h
@@ -41,6 +41,14 @@ public:
return spacemine_damage;
}
+ /**
+ * @brief id of the player who dropped the spacemine
+ * */
+ inline const int ownerid() const
+ {
+ return spacemine_ownerid;
+ }
+
/* --- mutators -------------------------------------------- */
/**
@@ -50,11 +58,21 @@ public:
{
spacemine_damage = damage;
}
+
+ /**
+ * @brief set the id of the player who dropped the spacemine
+ * */
+ inline void set_ownerid(const int ownerid)
+ {
+ spacemine_ownerid = ownerid;
+ }
private:
unsigned long spacemine_detonated_timestamp;
float spacemine_damage;
+ int spacemine_ownerid;
+
static const Template *spacemine_template;
};