C# Class CastleGame.MainGame

Show file Open project: somoso/psychic-dangerzone Class Usage Examples

Protected Properties

Property Type Description
playerone Player

Public Methods

Method Description
MainGame ( ) : System
MainGame ( string args ) : System
run ( ) : void

Protected Methods

Method Description
ListCommands ( ) : void
attack ( Enemy enemy, Weapon weapon ) : void
back ( ) : void
forward ( ) : void
healthInfo ( ) : void
help ( ) : void
left ( ) : void
linkRooms ( Room room, Room room2, RoomPlaces roomPlace ) : void
parse ( string command ) : void
printConsoleText ( ) : void
right ( ) : void
roomDescriptionInfo ( ) : void
takeItem ( string slicecmd ) : void

Private Methods

Method Description
getEnemy ( string enemy ) : Enemy
getPlayerWeapon ( string weapon ) : Weapon
infoOn ( string slicecmd ) : void
initialiseRooms ( ) : void
isNavigating ( string command ) : bool
navigation ( string command ) : Result
printFleeText ( ) : void
printInventory ( ) : void
processAttack ( string command ) : void
processGo ( string command ) : void
processInfo ( string command ) : void
processTake ( string command ) : void

Method Details

ListCommands() protected method

protected ListCommands ( ) : void
return void

MainGame() public method

public MainGame ( ) : System
return System

MainGame() public method

public MainGame ( string args ) : System
args string
return System

attack() protected method

protected attack ( Enemy enemy, Weapon weapon ) : void
enemy CastleGame.Enemies.Enemy
weapon Weapon
return void

back() protected method

protected back ( ) : void
return void

forward() protected method

protected forward ( ) : void
return void

healthInfo() protected method

protected healthInfo ( ) : void
return void

help() protected method

protected help ( ) : void
return void

left() protected method

protected left ( ) : void
return void

linkRooms() protected method

protected linkRooms ( Room room, Room room2, RoomPlaces roomPlace ) : void
room Room
room2 Room
roomPlace RoomPlaces
return void

parse() protected method

protected parse ( string command ) : void
command string
return void

printConsoleText() protected method

protected printConsoleText ( ) : void
return void

right() protected method

protected right ( ) : void
return void

roomDescriptionInfo() protected method

protected roomDescriptionInfo ( ) : void
return void

run() public method

public run ( ) : void
return void

takeItem() protected method

protected takeItem ( string slicecmd ) : void
slicecmd string
return void

Property Details

playerone protected property

protected Player,CastleGame playerone
return Player