C# Class RecordRobot.MovingObjects.MovingObjectManager

Mostrar archivo Open project: scastle/EECS290_Project1

Public Properties

Property Type Description
GameOver bool
GameWin bool
NewLevel bool
Objects List
nextColor RecordColor

Public Methods

Method Description
AIChangeDirection ( RecordColor c ) : void
CheckCollisions ( ) : IEnumerable
Draw ( ) : void

Draws all moving objects

GetRelativePosition ( RecordColor c ) : Point
NextLevel ( ) : void
SetRelativeDirection ( RecordColor color ) : void
Update ( ) : void

Updates the positions and statuses of all moving objects

Private Methods

Method Description
InitializeObjects ( ) : void

Adds all initial moving objects to the Objects list

Method Details

AIChangeDirection() public static method

public static AIChangeDirection ( RecordColor c ) : void
c RecordColor
return void

CheckCollisions() public static method

public static CheckCollisions ( ) : IEnumerable
return IEnumerable

Draw() public static method

Draws all moving objects
public static Draw ( ) : void
return void

GetRelativePosition() public static method

public static GetRelativePosition ( RecordColor c ) : Point
c RecordColor
return Point

NextLevel() public static method

public static NextLevel ( ) : void
return void

SetRelativeDirection() public static method

public static SetRelativeDirection ( RecordColor color ) : void
color RecordColor
return void

Update() public static method

Updates the positions and statuses of all moving objects
public static Update ( ) : void
return void

Property Details

GameOver public_oe static_oe property

public static bool GameOver
return bool

GameWin public_oe static_oe property

public static bool GameWin
return bool

NewLevel public_oe static_oe property

public static bool NewLevel
return bool

Objects public_oe static_oe property

All moving objects to be updated and drawn are placed in this list.
public static List Objects
return List

nextColor public_oe static_oe property

public static RecordColor nextColor
return RecordColor