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.cc')
-rw-r--r--src/core/entity.cc16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/core/entity.cc b/src/core/entity.cc
index 589d132..b7d7646 100644
--- a/src/core/entity.cc
+++ b/src/core/entity.cc
@@ -1281,6 +1281,22 @@ void EntityControlable::set_target_controlflags(int controlflags)
}
}
+void EntityControlable::set_target_controlflag(const ControlFlag controlflag)
+{
+ if (!has_controlflag(controlflag);
+ target_controlflags = target_controlflags | controlflag;
+ set_dirty();
+ }
+}
+
+void EntityControlable::unset_target_controlflag(const ControlFlag controlflag)
+{
+ if (has_controlflag(controlflag);
+ target_controlflags = target_controlflags & ~controlflag;
+ set_dirty();
+ }
+}
+
void EntityControlable::set_zone(Zone *zone)
{
if (entity_zone == zone)