diff options
| author | Alexander Gavrilov | 2012-09-09 17:04:58 +0400 |
|---|---|---|
| committer | Alexander Gavrilov | 2012-09-09 17:04:58 +0400 |
| commit | 9679b7729c79888d8bdac99484dfad7a5e07d13e (patch) | |
| tree | b59fb3493a9bbb41d70a5c56059c1686ab99f90e /library/include | |
| parent | ec3d489bda19f8ab2a45fbb19d7259ea3f4ad75b (diff) | |
| download | dfhack-9679b7729c79888d8bdac99484dfad7a5e07d13e.tar.gz dfhack-9679b7729c79888d8bdac99484dfad7a5e07d13e.tar.bz2 dfhack-9679b7729c79888d8bdac99484dfad7a5e07d13e.tar.xz | |
Clean up the movement speed calculation function and move into the core.
Diffstat (limited to 'library/include')
| -rw-r--r-- | library/include/modules/Units.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/library/include/modules/Units.h b/library/include/modules/Units.h index 3fba5c21..65f0b58a 100644 --- a/library/include/modules/Units.h +++ b/library/include/modules/Units.h @@ -221,6 +221,7 @@ DFHACK_EXPORT bool isCrazed(df::unit *unit); DFHACK_EXPORT bool isOpposedToLife(df::unit *unit); DFHACK_EXPORT bool hasExtravision(df::unit *unit); DFHACK_EXPORT bool isBloodsucker(df::unit *unit); +DFHACK_EXPORT bool isMischievous(df::unit *unit); DFHACK_EXPORT df::unit_misc_trait *getMiscTrait(df::unit *unit, df::misc_trait_type type, bool create = false); @@ -233,6 +234,7 @@ DFHACK_EXPORT bool isDwarf(df::unit *unit); DFHACK_EXPORT double getAge(df::unit *unit, bool true_age = false); DFHACK_EXPORT int getEffectiveSkill(df::unit *unit, df::job_skill skill_id); +DFHACK_EXPORT int computeMovementSpeed(df::unit *unit); struct NoblePosition { df::historical_entity *entity; |
