summaryrefslogtreecommitdiffstats
path: root/Tank.hs
diff options
context:
space:
mode:
authorMatthias Schiffer <matthias@gamezock.de>2010-02-24 02:42:10 +0100
committerMatthias Schiffer <matthias@gamezock.de>2010-02-24 02:42:10 +0100
commit4a6d841bc7e3b17bf399ae2e39d409fe85a6fffb (patch)
tree2668cbf6f6c21f2ab5c44e7322e4237d29d34a1b /Tank.hs
parent9036ac310501dd9d2eba181270711c328963d17f (diff)
downloadhtanks-4a6d841bc7e3b17bf399ae2e39d409fe85a6fffb.tar
htanks-4a6d841bc7e3b17bf399ae2e39d409fe85a6fffb.zip
Used fixed point numbers for coordinates
Diffstat (limited to 'Tank.hs')
-rw-r--r--Tank.hs8
1 files changed, 5 insertions, 3 deletions
diff --git a/Tank.hs b/Tank.hs
index c5bf465..4e1f02a 100644
--- a/Tank.hs
+++ b/Tank.hs
@@ -1,8 +1,10 @@
module Tank ( Tank(..)
) where
+import Data.Fixed
+
data Tank = Tank
- { posx :: !Float
- , posy :: !Float
- , dir :: !Float
+ { posx :: !Micro
+ , posy :: !Micro
+ , dir :: !Micro
} deriving Show