C# 클래스 MinoThesGameConsoleApp.Game

파일 보기 프로젝트 열기: ZachChristensen/Theseus-and-the-Minotaur 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
AsciiMap ].Tile[
KeyInfo System.ConsoleKeyInfo
Map ].Tile[
Minotaur Minotaur
Theseus Theseus
TheseusAlive bool
TheseusEscaped bool
minotaur Minotaur
theseus Theseus

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
MinotaurTurn ( ) : bool
TheseusTurn ( ) : bool
isNoWallInFront ( Point minoPos, string direction ) : bool

메소드 상세

CreateMap() 공개 메소드

public CreateMap ( ) : void
리턴 void

Initialise() 공개 메소드

public Initialise ( ) : void
리턴 void

IsDirectionWall() 공개 메소드

public IsDirectionWall ( Character character, Point direction ) : bool
character Character
direction Point
리턴 bool

IsMinotaurNextToTheseus() 공개 메소드

public IsMinotaurNextToTheseus ( ) : bool
리턴 bool

MoveMinotaur() 공개 메소드

public MoveMinotaur ( Point theseusPos ) : void
theseusPos Point
리턴 void

MoveMinotaurInDirection() 공개 메소드

public MoveMinotaurInDirection ( bool isX, int theseusPos, int minotaurPos ) : bool
isX bool
theseusPos int
minotaurPos int
리턴 bool

MoveTheseus() 공개 메소드

public MoveTheseus ( ) : bool
리턴 bool

Play() 공개 메소드

public Play ( ) : void
리턴 void

PrintGridCoordination() 공개 메소드

public PrintGridCoordination ( ) : void
리턴 void

PrintMap() 공개 메소드

public PrintMap ( ) : void
리턴 void

PrintMap2() 공개 메소드

public PrintMap2 ( ) : void
리턴 void

ReadKeyboardControll() 공개 메소드

public ReadKeyboardControll ( ) : Point
리턴 Point

TheseusDeath() 공개 메소드

public TheseusDeath ( ) : void
리턴 void

TryToMoveTheCharacter() 공개 메소드

public TryToMoveTheCharacter ( Character character, Point direction ) : bool
character Character
direction Point
리턴 bool

updatePosition() 공개 메소드

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

프로퍼티 상세

AsciiMap 공개적으로 프로퍼티

public Tile[,] AsciiMap
리턴 ].Tile[

KeyInfo 공개적으로 프로퍼티

public ConsoleKeyInfo,System KeyInfo
리턴 System.ConsoleKeyInfo

Map 공개적으로 프로퍼티

public Tile[,] Map
리턴 ].Tile[

Minotaur 공개적으로 프로퍼티

public Minotaur,MinoThesGameConsoleApp Minotaur
리턴 Minotaur

Theseus 공개적으로 프로퍼티

public Theseus,MinoThesGameConsoleApp Theseus
리턴 Theseus

TheseusAlive 공개적으로 프로퍼티

public bool TheseusAlive
리턴 bool

TheseusEscaped 공개적으로 프로퍼티

public bool TheseusEscaped
리턴 bool

minotaur 공개적으로 프로퍼티

public Minotaur,MinoThesGameConsoleApp minotaur
리턴 Minotaur

theseus 공개적으로 프로퍼티

public Theseus,MinoThesGameConsoleApp theseus
리턴 Theseus