diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2011-06-24 21:50:32 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2011-06-24 21:50:32 +0200 |
commit | 83f0606ea9dfd6b493097dc97330055dff4a2867 (patch) | |
tree | 464d7f3ed2c02f48b6463d1528e3e0b5f50e79c6 /src/Player.hs | |
parent | d7971385e844e24d9d851d3d142895b5cb89c91b (diff) | |
download | htanks-83f0606ea9dfd6b493097dc97330055dff4a2867.tar htanks-83f0606ea9dfd6b493097dc97330055dff4a2867.zip |
Added Transformable class to simplify collision calculation
Diffstat (limited to 'src/Player.hs')
-rw-r--r-- | src/Player.hs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Player.hs b/src/Player.hs index 4784b8b..67d9f78 100644 --- a/src/Player.hs +++ b/src/Player.hs @@ -4,7 +4,8 @@ module Player ( Player(..) , SomePlayer(..) ) where -import Data.Fixed +import Transformable +import Vector import Data.Typeable import Tank @@ -12,7 +13,7 @@ import GLDriver (SomeEvent) class Player a where - playerUpdate :: a -> Tank -> IO (a, Maybe Micro, Bool, Maybe Micro, Bool) + playerUpdate :: a -> Tank -> IO (a, Maybe Vector, Bool, Maybe Vector, Bool) handleEvent :: a -> SomeEvent -> a handleEvent player _ = player |