C# Class CastleGame.Player

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

Public Methods

Method Description
Player ( Room startingroom ) : System
goBack ( ) : bool
goForward ( ) : bool
goLeft ( ) : bool
goRight ( ) : bool
receiveDamage ( Enemy enemy, Weapon weapon ) : void
takeHealth ( Health healthpack ) : void

Method Details

Player() public method

public Player ( Room startingroom ) : System
startingroom Room
return System

goBack() public method

public goBack ( ) : bool
return bool

goForward() public method

public goForward ( ) : bool
return bool

goLeft() public method

public goLeft ( ) : bool
return bool

goRight() public method

public goRight ( ) : bool
return bool

receiveDamage() public method

public receiveDamage ( Enemy enemy, Weapon weapon ) : void
enemy CastleGame.Enemies.Enemy
weapon Weapon
return void

takeHealth() public method

public takeHealth ( Health healthpack ) : void
healthpack Health
return void