C# Class MinoThesGameConsoleApp.Game

Show file Open project: ZachChristensen/Theseus-and-the-Minotaur Class Usage Examples

Public Properties

Property Type Description
AsciiMap ].Tile[
KeyInfo System.ConsoleKeyInfo
Map ].Tile[
Minotaur Minotaur
Theseus Theseus
TheseusAlive bool
TheseusEscaped bool
minotaur Minotaur
theseus Theseus

Public Methods

Method 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

Method Description
MinotaurTurn ( ) : bool
TheseusTurn ( ) : bool
isNoWallInFront ( Point minoPos, string direction ) : bool

Method Details

CreateMap() public method

public CreateMap ( ) : void
return void

Initialise() public method

public Initialise ( ) : void
return void

IsDirectionWall() public method

public IsDirectionWall ( Character character, Point direction ) : bool
character Character
direction Point
return bool

IsMinotaurNextToTheseus() public method

public IsMinotaurNextToTheseus ( ) : bool
return bool

MoveMinotaur() public method

public MoveMinotaur ( Point theseusPos ) : void
theseusPos Point
return void

MoveMinotaurInDirection() public method

public MoveMinotaurInDirection ( bool isX, int theseusPos, int minotaurPos ) : bool
isX bool
theseusPos int
minotaurPos int
return bool

MoveTheseus() public method

public MoveTheseus ( ) : bool
return bool

Play() public method

public Play ( ) : void
return void

PrintGridCoordination() public method

public PrintGridCoordination ( ) : void
return void

PrintMap() public method

public PrintMap ( ) : void
return void

PrintMap2() public method

public PrintMap2 ( ) : void
return void

ReadKeyboardControll() public method

public ReadKeyboardControll ( ) : Point
return Point

TheseusDeath() public method

public TheseusDeath ( ) : void
return void

TryToMoveTheCharacter() public method

public TryToMoveTheCharacter ( Character character, Point direction ) : bool
character Character
direction Point
return bool

updatePosition() public method

public updatePosition ( Minotaur &theThing, string direction ) : void
theThing Minotaur
direction string
return void

Property Details

AsciiMap public property

public Tile[,] AsciiMap
return ].Tile[

KeyInfo public property

public ConsoleKeyInfo,System KeyInfo
return System.ConsoleKeyInfo

Map public property

public Tile[,] Map
return ].Tile[

Minotaur public property

public Minotaur,MinoThesGameConsoleApp Minotaur
return Minotaur

Theseus public property

public Theseus,MinoThesGameConsoleApp Theseus
return Theseus

TheseusAlive public property

public bool TheseusAlive
return bool

TheseusEscaped public property

public bool TheseusEscaped
return bool

minotaur public property

public Minotaur,MinoThesGameConsoleApp minotaur
return Minotaur

theseus public property

public Theseus,MinoThesGameConsoleApp theseus
return Theseus