From eeb9eb02113f2c483cce404460b22f11997a5b0c Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sat, 2 Nov 2013 21:32:11 +0000 Subject: Copy currently mounted weapons onto wingmen. --- src/core/entity.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/core/entity.h') diff --git a/src/core/entity.h b/src/core/entity.h index 6878f08..721c329 100644 --- a/src/core/entity.h +++ b/src/core/entity.h @@ -744,11 +744,16 @@ public: /** * @brief returns true if a specified control flag is set * */ - inline bool has_target_controlflag(ControlFlags controlflag) + inline const bool has_target_controlflag(ControlFlags controlflag) const { return ((target_controlflags & controlflag) == controlflag); } + inline const math::Vector3f &aim() const + { + return target_aim; + } + /*----- serializers ----------------------------------------------- */ /// serialize the entity to a stream -- cgit v1.2.3