diff options
author | johndoe123 | 2014-03-31 19:54:55 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2018-07-20 06:43:33 +0000 |
commit | f2c48e3ae0e5775da6f3dcac841414cf8b5379ef (patch) | |
tree | 61eb9c915e846d26922d7c584b7b929102927034 /engines/illusions/fixedpoint.h | |
parent | e0e4d2ffa92fccdef1ea3eae0228ec812c7dbac5 (diff) | |
download | scummvm-rg350-f2c48e3ae0e5775da6f3dcac841414cf8b5379ef.tar.gz scummvm-rg350-f2c48e3ae0e5775da6f3dcac841414cf8b5379ef.tar.bz2 scummvm-rg350-f2c48e3ae0e5775da6f3dcac841414cf8b5379ef.zip |
ILLUSIONS: Implement pathwalking (actual pathfinding todo)
Diffstat (limited to 'engines/illusions/fixedpoint.h')
-rw-r--r-- | engines/illusions/fixedpoint.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/engines/illusions/fixedpoint.h b/engines/illusions/fixedpoint.h index a14eb8b51b..1320daa7e7 100644 --- a/engines/illusions/fixedpoint.h +++ b/engines/illusions/fixedpoint.h @@ -29,16 +29,15 @@ namespace Illusions { typedef int32 FP16; -struct FPRect { - FP16 x1, y1, x2, y2; -}; - FP16 floatToFixed(float value); float fixedToFloat(FP16 value); FP16 fixedMul(FP16 a, FP16 b); FP16 fixedDiv(FP16 a, FP16 b); -int fixedTrunc(FP16 value); +int16 fixedTrunc(FP16 value); FP16 fixedDistance(FP16 x1, FP16 y1, FP16 x2, FP16 y2); +FP16 fixedAtan(FP16 value); +FP16 fixedCos(FP16 value); +FP16 fixedSin(FP16 value); } // End of namespace Illusions |