C# 클래스 Gruppe22.Backend.NPC

The class used to generate NPCs. NPCs can either tell a story to the player or have a shop.
상속: 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

HideQuest ( int id ) : void
Interact ( Actor With ) : void

Method to interact with a NPC. Either opens the NPC's shop or his dialogue. Calls the Eventhandler.

NPC ( int health = 10, int armor, int damage, int maxHealth = 10, string name = "", Random r = null, int _level = 1, bool shop = false ) : System

The constructor for a NPC. Initializes the standard properties and graphics for that NPC. See actor for the params.

메소드 상세

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

HideQuest() 공개 메소드

public HideQuest ( int id ) : void
id int
리턴 void

Interact() 공개 메소드

Method to interact with a NPC. Either opens the NPC's shop or his dialogue. Calls the Eventhandler.
public Interact ( Actor With ) : void
With Actor The actor with which should be interacted
리턴 void

NPC() 공개 메소드

The constructor for a NPC. Initializes the standard properties and graphics for that NPC. See actor for the params.
public NPC ( int health = 10, int armor, int damage, int maxHealth = 10, string name = "", Random r = null, int _level = 1, bool shop = false ) : System
health int
armor int
damage int
maxHealth int
name string
r System.Random
_level int
shop bool
리턴 System