Moved source files to src directory
This commit is contained in:
parent
2bb8561836
commit
7327695ca3
14 changed files with 3 additions and 6 deletions
19
src/CPUPlayer.hs
Normal file
19
src/CPUPlayer.hs
Normal file
|
@ -0,0 +1,19 @@
|
|||
{-# LANGUAGE DeriveDataTypeable #-}
|
||||
|
||||
module CPUPlayer ( CPUPlayer(..)
|
||||
) where
|
||||
|
||||
|
||||
import Data.Fixed
|
||||
import Data.Ratio ((%))
|
||||
import Data.Typeable
|
||||
|
||||
import GLDriver
|
||||
import Player
|
||||
|
||||
|
||||
data CPUPlayer = CPUPlayer Micro
|
||||
deriving (Typeable, Show)
|
||||
|
||||
instance Player CPUPlayer where
|
||||
playerUpdate (CPUPlayer angle) _ = (CPUPlayer (if (angle+0.1) > 180 then angle-359.9 else angle+0.1), Just angle, True, Just (-angle), False)
|
Reference in a new issue