C# Class MinoThesGameConsoleApp.Game

Afficher le fichier Open project: ZachChristensen/Theseus-and-the-Minotaur Class Usage Examples

Méthodes publiques

Свойство Type Description
AsciiMap ].Tile[
KeyInfo System.ConsoleKeyInfo
Map ].Tile[
Minotaur Minotaur
Theseus Theseus
TheseusAlive bool
TheseusEscaped bool
minotaur Minotaur
theseus Theseus

Méthodes publiques

Méthode Description
CreateMap ( ) : void
Initialise ( ) : void
IsDirectionWall ( Character character, Point direction ) : bool
IsMinotaurNextToTheseus ( ) : bool
MoveMinotaur ( Point theseusPos ) : void
MoveMinotaurInDirection ( bool isX, int theseusPos, int minotaurPos ) : bool
MoveTheseus ( ) : bool
Play ( ) : void
PrintGridCoordination ( ) : void
PrintMap ( ) : void
PrintMap2 ( ) : void
ReadKeyboardControll ( ) : Point
TheseusDeath ( ) : void
TryToMoveTheCharacter ( Character character, Point direction ) : bool
updatePosition ( Minotaur &theThing, string direction ) : void

Private Methods

Méthode Description
MinotaurTurn ( ) : bool
TheseusTurn ( ) : bool
isNoWallInFront ( Point minoPos, string direction ) : bool

Method Details

CreateMap() public méthode

public CreateMap ( ) : void
Résultat void

Initialise() public méthode

public Initialise ( ) : void
Résultat void

IsDirectionWall() public méthode

public IsDirectionWall ( Character character, Point direction ) : bool
character Character
direction Point
Résultat bool

IsMinotaurNextToTheseus() public méthode

public IsMinotaurNextToTheseus ( ) : bool
Résultat bool

MoveMinotaur() public méthode

public MoveMinotaur ( Point theseusPos ) : void
theseusPos Point
Résultat void

MoveMinotaurInDirection() public méthode

public MoveMinotaurInDirection ( bool isX, int theseusPos, int minotaurPos ) : bool
isX bool
theseusPos int
minotaurPos int
Résultat bool

MoveTheseus() public méthode

public MoveTheseus ( ) : bool
Résultat bool

Play() public méthode

public Play ( ) : void
Résultat void

PrintGridCoordination() public méthode

public PrintGridCoordination ( ) : void
Résultat void

PrintMap() public méthode

public PrintMap ( ) : void
Résultat void

PrintMap2() public méthode

public PrintMap2 ( ) : void
Résultat void

ReadKeyboardControll() public méthode

public ReadKeyboardControll ( ) : Point
Résultat Point

TheseusDeath() public méthode

public TheseusDeath ( ) : void
Résultat void

TryToMoveTheCharacter() public méthode

public TryToMoveTheCharacter ( Character character, Point direction ) : bool
character Character
direction Point
Résultat bool

updatePosition() public méthode

public updatePosition ( Minotaur &theThing, string direction ) : void
theThing Minotaur
direction string
Résultat void

Property Details

AsciiMap public_oe property

public Tile[,] AsciiMap
Résultat ].Tile[

KeyInfo public_oe property

public ConsoleKeyInfo,System KeyInfo
Résultat System.ConsoleKeyInfo

Map public_oe property

public Tile[,] Map
Résultat ].Tile[

Minotaur public_oe property

public Minotaur,MinoThesGameConsoleApp Minotaur
Résultat Minotaur

Theseus public_oe property

public Theseus,MinoThesGameConsoleApp Theseus
Résultat Theseus

TheseusAlive public_oe property

public bool TheseusAlive
Résultat bool

TheseusEscaped public_oe property

public bool TheseusEscaped
Résultat bool

minotaur public_oe property

public Minotaur,MinoThesGameConsoleApp minotaur
Résultat Minotaur

theseus public_oe property

public Theseus,MinoThesGameConsoleApp theseus
Résultat Theseus