summaryrefslogtreecommitdiffstats
path: root/src/Entities/Boat.h
diff options
context:
space:
mode:
authorbeeduck <b33duck@gmail.com>2016-07-18 22:10:00 +0200
committerMattes D <github@xoft.cz>2016-07-18 22:10:00 +0200
commitdb65e11d57fb52395a3ba2e9372bdaf29aca691c (patch)
tree25bcc8449ab859676dcc2dea7b318051c22e51f1 /src/Entities/Boat.h
parentUpdate README.md (#3266) (diff)
downloadcuberite-db65e11d57fb52395a3ba2e9372bdaf29aca691c.tar
cuberite-db65e11d57fb52395a3ba2e9372bdaf29aca691c.tar.gz
cuberite-db65e11d57fb52395a3ba2e9372bdaf29aca691c.tar.bz2
cuberite-db65e11d57fb52395a3ba2e9372bdaf29aca691c.tar.lz
cuberite-db65e11d57fb52395a3ba2e9372bdaf29aca691c.tar.xz
cuberite-db65e11d57fb52395a3ba2e9372bdaf29aca691c.tar.zst
cuberite-db65e11d57fb52395a3ba2e9372bdaf29aca691c.zip
Diffstat (limited to '')
-rw-r--r--src/Entities/Boat.h23
1 files changed, 22 insertions, 1 deletions
diff --git a/src/Entities/Boat.h b/src/Entities/Boat.h
index d168f5072..5815ff88c 100644
--- a/src/Entities/Boat.h
+++ b/src/Entities/Boat.h
@@ -31,8 +31,29 @@ public:
virtual void HandleSpeedFromAttachee(float a_Forward, float a_Sideways) override;
cBoat(double a_X, double a_Y, double a_Z);
-} ;
+ int GetLastDamage(void) const { return m_LastDamage; }
+ int GetForwardDirection(void) const { return m_ForwardDirection; }
+
+ float GetDamageTaken(void) const { return m_DamageTaken; }
+
+ int GetType(void) const { return m_Type; }
+
+ bool IsRightPaddleUsed(void) const { return m_RightPaddleUsed; }
+ bool IsLeftPaddleUsed(void) const { return m_LeftPaddleUsed; }
+ void SetLastDamage(int TimeSinceLastHit);
+ void UpdatePaddles(bool rightPaddleUsed, bool leftPaddleUsed);
+private:
+ int m_LastDamage;
+ int m_ForwardDirection;
+
+ float m_DamageTaken;
+
+ int m_Type;
+
+ bool m_RightPaddleUsed;
+ bool m_LeftPaddleUsed;
+} ;