C# Class RecordRobot.MovingObjects.MovingObjectManager

Afficher le fichier Open project: scastle/EECS290_Project1

Méthodes publiques

Свойство Type Description
GameOver bool
GameWin bool
NewLevel bool
Objects List
nextColor RecordColor

Méthodes publiques

Méthode 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

Méthode Description
InitializeObjects ( ) : void

Adds all initial moving objects to the Objects list

Method Details

AIChangeDirection() public static méthode

public static AIChangeDirection ( RecordColor c ) : void
c RecordColor
Résultat void

CheckCollisions() public static méthode

public static CheckCollisions ( ) : IEnumerable
Résultat IEnumerable

Draw() public static méthode

Draws all moving objects
public static Draw ( ) : void
Résultat void

GetRelativePosition() public static méthode

public static GetRelativePosition ( RecordColor c ) : Point
c RecordColor
Résultat Point

NextLevel() public static méthode

public static NextLevel ( ) : void
Résultat void

SetRelativeDirection() public static méthode

public static SetRelativeDirection ( RecordColor color ) : void
color RecordColor
Résultat void

Update() public static méthode

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

Property Details

GameOver public_oe static_oe property

public static bool GameOver
Résultat bool

GameWin public_oe static_oe property

public static bool GameWin
Résultat bool

NewLevel public_oe static_oe property

public static bool NewLevel
Résultat bool

Objects public_oe static_oe property

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

nextColor public_oe static_oe property

public static RecordColor nextColor
Résultat RecordColor