C# Класс Gruppe22.Backend.Player

The class used for players, a type of an actor.
Наследование: Actor
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Описание методов

AddQuest() публичный метод

Add quest to the player. This shoud be used from NPC(dialog).
public AddQuest ( Quest q ) : void
q Quest The quest.
Результат void

ClearQuests() публичный метод

Reset the list of quests
public ClearQuests ( ) : void
Результат void

Player() публичный метод

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
Результат System

UpdateQuests() публичный метод

This method update the status of all player quests and grants the rewards
public UpdateQuests ( ) : void
Результат void