C# Class Gruppe22.Backend.Player

The class used for players, a type of an actor.
Inheritance: Actor
Afficher le fichier Open project: propra13-orga/gruppe22 Class Usage Examples

Méthodes publiques

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

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

ClearQuests() public méthode

Reset the list of quests
public ClearQuests ( ) : void
Résultat void

Player() public méthode

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
Résultat System

UpdateQuests() public méthode

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