C# Class CastleGame.MainGame

Afficher le fichier Open project: somoso/psychic-dangerzone Class Usage Examples

Protected Properties

Свойство Type Description
playerone Player

Méthodes publiques

Méthode Description
MainGame ( ) : System
MainGame ( string args ) : System
run ( ) : void

Méthodes protégées

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

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

protected ListCommands ( ) : void
Résultat void

MainGame() public méthode

public MainGame ( ) : System
Résultat System

MainGame() public méthode

public MainGame ( string args ) : System
args string
Résultat System

attack() protected méthode

protected attack ( Enemy enemy, Weapon weapon ) : void
enemy CastleGame.Enemies.Enemy
weapon Weapon
Résultat void

back() protected méthode

protected back ( ) : void
Résultat void

forward() protected méthode

protected forward ( ) : void
Résultat void

healthInfo() protected méthode

protected healthInfo ( ) : void
Résultat void

help() protected méthode

protected help ( ) : void
Résultat void

left() protected méthode

protected left ( ) : void
Résultat void

linkRooms() protected méthode

protected linkRooms ( Room room, Room room2, RoomPlaces roomPlace ) : void
room Room
room2 Room
roomPlace RoomPlaces
Résultat void

parse() protected méthode

protected parse ( string command ) : void
command string
Résultat void

printConsoleText() protected méthode

protected printConsoleText ( ) : void
Résultat void

right() protected méthode

protected right ( ) : void
Résultat void

roomDescriptionInfo() protected méthode

protected roomDescriptionInfo ( ) : void
Résultat void

run() public méthode

public run ( ) : void
Résultat void

takeItem() protected méthode

protected takeItem ( string slicecmd ) : void
slicecmd string
Résultat void

Property Details

playerone protected_oe property

protected Player,CastleGame playerone
Résultat Player