C# Class Gruppe22.Backend.Player

The class used for players, a type of an actor.
Inheritance: Actor
ファイルを表示 Open project: propra13-orga/gruppe22 Class Usage Examples

Public Methods

Method Description
AddQuest ( Quest q ) : void

Add quest to the player. This shoud be used from NPC(dialog).

ClearQuests ( ) : void

Reset the list of quests

Player ( int health = 100, int armour = 30, int damage = 20, int maxHealth = -1, string name = "" ) : System

The constructor for a player. Sets the default values. See actor for the params.

UpdateQuests ( ) : void

This method update the status of all player quests and grants the rewards

Method Details

AddQuest() public method

Add quest to the player. This shoud be used from NPC(dialog).
public AddQuest ( Quest q ) : void
q Quest The quest.
return void

ClearQuests() public method

Reset the list of quests
public ClearQuests ( ) : void
return void

Player() public method

The constructor for a player. Sets the default values. See actor for the params.
public Player ( int health = 100, int armour = 30, int damage = 20, int maxHealth = -1, string name = "" ) : System
health int
armour int
damage int
maxHealth int
name string
return System

UpdateQuests() public method

This method update the status of all player quests and grants the rewards
public UpdateQuests ( ) : void
return void