summaryrefslogtreecommitdiffstats
path: root/src/Tank.hs
blob: 2fbf61258f3a944ba0896c200a0f2d2e6c55a02d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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
          , tankLife          :: !Int
          } deriving (Eq, Show)