C# 클래스 Gruppe22.Backend.Player

The class used for players, a type of an actor.
상속: Actor
파일 보기 프로젝트 열기: propra13-orga/gruppe22 1 사용 예제들

공개 메소드들

메소드 설명
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