summaryrefslogtreecommitdiffstats
path: root/src/Tank.hs
blob: 21bc0daa5632c935c248913b43dc620db039ee31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
module Tank ( Tank(..)
            ) where

import Data.Fixed

data Tank = Tank
          { tankX             :: !Micro
          , tankY             :: !Micro
          , tankDir           :: !Micro
          , tankAim           :: !Micro
          , tankSpeed         :: !Micro
          , tankTurnspeed     :: !Micro
          , tankMoving        :: !Bool
          , tankBulletSpeed   :: !Micro
          , tankBulletBounces :: !Int
          , tankBulletsLeft   :: !Int
          } deriving Show