diff options
author | Matthias Schiffer <matthias@gamezock.de> | 2010-02-24 02:42:10 +0100 |
---|---|---|
committer | Matthias Schiffer <matthias@gamezock.de> | 2010-02-24 02:42:10 +0100 |
commit | 4a6d841bc7e3b17bf399ae2e39d409fe85a6fffb (patch) | |
tree | 2668cbf6f6c21f2ab5c44e7322e4237d29d34a1b /Tank.hs | |
parent | 9036ac310501dd9d2eba181270711c328963d17f (diff) | |
download | htanks-4a6d841bc7e3b17bf399ae2e39d409fe85a6fffb.tar htanks-4a6d841bc7e3b17bf399ae2e39d409fe85a6fffb.zip |
Used fixed point numbers for coordinates
Diffstat (limited to 'Tank.hs')
-rw-r--r-- | Tank.hs | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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 |