Reorganized code to add Debris class
This commit is contained in:
parent
e85dc20a48
commit
90b8d87e02
11 changed files with 57 additions and 25 deletions
17
src/Tank.hs
Normal file
17
src/Tank.hs
Normal file
|
@ -0,0 +1,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
|
Reference in a new issue