Moved source files to src directory

This commit is contained in:
Matthias Schiffer 2010-03-09 03:49:15 +01:00
parent 2bb8561836
commit 7327695ca3
14 changed files with 3 additions and 6 deletions

19
src/CPUPlayer.hs Normal file
View 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)