From bf5ee5e54252838963441db6c35dffcd9284ba38 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 17 Jan 2016 12:23:49 +0100 Subject: [PATCH] - added X(), Y(), Z() access functions to AActor. This commit is just preparation for upcoming changes to completely encapsulate the coordinate info in AActor because I'm going to have to work with an altered version of actor.h that cannot be committed without breaking the engine. With this file present in the repo before work is started the changes can be committed piece by piece. --- src/actor.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/actor.h b/src/actor.h index 114dd1179..846d1f0d9 100644 --- a/src/actor.h +++ b/src/actor.h @@ -1155,6 +1155,20 @@ public: } bool HasSpecialDeathStates () const; + + fixed_t X() const + { + return x; + } + fixed_t Y() const + { + return y; + } + fixed_t Z() const + { + return z; + } + }; class FActorIterator