SoccerFun-0.3.1: Football simulation framework for teaching functional programming

SoccerFun.Types

Synopsis

Documentation

class NameOf a whereSource

Methods

nameOf :: a -> StringSource

Instances

data Brain ai memory Source

Constructors

Brain 

Fields

m :: memory
 
ai :: ai
 

data Half Source

Constructors

FirstHalf 
SecondHalf 

Instances

class Other a whereSource

type with an inverse value

Methods

other :: a -> aSource

Instances

type TimeUnitSource

Arguments

 = Seconds

time unit in sec.

type SecondsSource

Arguments

 = Float

zero < time unit

data Edge Source

Constructors

North 
South 

Instances

data Reprimand Source

If the referee gives a second yellow he should add red to it himself

Constructors

Warning 
YellowCard 
RedCard 

data Success Source

Constructors

Success 
Fail 

Instances

type FramesToGoSource

Arguments

 = Int

number of frames to go before event ends

data ATeam Source

Constructors

Team1 
Team2 

Instances

type DisplacementsSource

Arguments

 = [(PlayerID, Displacement)]

players that need to be displaced

type DisplacementSource

Arguments

 = Position

new position