Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/entity.h')
-rw-r--r--src/core/entity.h7
1 files changed, 6 insertions, 1 deletions
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