C# 클래스 SunsetHigh.Quest

Static class for managing quest triggers (events that set up changes in the game)
파일 보기 프로젝트 열기: ErraticUnicorn/MOSH

공개 프로퍼티들

프로퍼티 타입 설명
NUM_QUEST_IDS int

공개 메소드들

메소드 설명
addQuestState ( QuestID id, QuestState state ) : void

Adds the given state(s) to the quest with the given ID (keeping any old states)

getQuestState ( QuestID id ) : QuestState

Returns the state(s) of the given quests. Check what states are active using bitwise operations (&).

getQuestStateSave ( ) : QuestState[]

Used for saving purposes only

isQuestAccepted ( QuestID id ) : bool
isQuestAvailable ( QuestID id ) : bool
isQuestComplete ( QuestID id ) : bool
isQuestStateActive ( QuestID id, QuestState state ) : bool

Checks a given quest for the given quest state(s)

isQuestStateInactive ( QuestID id, QuestState state ) : bool

Checks a given quest for whether the given state(s) is switched off

loadQuestStateSave ( QuestState loadableTriggers ) : void

Used for loading in quest states when restoring a saved game

overwriteQuestState ( QuestID id, QuestState state ) : void

Sets the quest with the given ID to a given state (overwrites any old states!)

removeQuestState ( QuestID id, QuestState state ) : void

Removes the given state(s) from the quest with the given ID (keeping other states)

setQuestAccepted ( QuestID id ) : void
setQuestAvailable ( QuestID id ) : void
setQuestComplete ( QuestID id ) : void

비공개 메소드들

메소드 설명
nullCheck ( ) : void
pushEvent ( QuestEventArgs e ) : void

메소드 상세

addQuestState() 공개 정적인 메소드

Adds the given state(s) to the quest with the given ID (keeping any old states)
public static addQuestState ( QuestID id, QuestState state ) : void
id QuestID The particular quest
state QuestState The state(s) to add
리턴 void

getQuestState() 공개 정적인 메소드

Returns the state(s) of the given quests. Check what states are active using bitwise operations (&).
public static getQuestState ( QuestID id ) : QuestState
id QuestID The particular quest
리턴 QuestState

getQuestStateSave() 공개 정적인 메소드

Used for saving purposes only
public static getQuestStateSave ( ) : QuestState[]
리턴 QuestState[]

isQuestAccepted() 공개 정적인 메소드

public static isQuestAccepted ( QuestID id ) : bool
id QuestID
리턴 bool

isQuestAvailable() 공개 정적인 메소드

public static isQuestAvailable ( QuestID id ) : bool
id QuestID
리턴 bool

isQuestComplete() 공개 정적인 메소드

public static isQuestComplete ( QuestID id ) : bool
id QuestID
리턴 bool

isQuestStateActive() 공개 정적인 메소드

Checks a given quest for the given quest state(s)
public static isQuestStateActive ( QuestID id, QuestState state ) : bool
id QuestID The particular quest
state QuestState The quest state(s) to check
리턴 bool

isQuestStateInactive() 공개 정적인 메소드

Checks a given quest for whether the given state(s) is switched off
public static isQuestStateInactive ( QuestID id, QuestState state ) : bool
id QuestID The particular quest
state QuestState The quest state(s) to check
리턴 bool

loadQuestStateSave() 공개 정적인 메소드

Used for loading in quest states when restoring a saved game
public static loadQuestStateSave ( QuestState loadableTriggers ) : void
loadableTriggers QuestState A QuestState[] representation of the states to load
리턴 void

overwriteQuestState() 공개 정적인 메소드

Sets the quest with the given ID to a given state (overwrites any old states!)
public static overwriteQuestState ( QuestID id, QuestState state ) : void
id QuestID The particular quest
state QuestState The new state(s) of the quest
리턴 void

removeQuestState() 공개 정적인 메소드

Removes the given state(s) from the quest with the given ID (keeping other states)
public static removeQuestState ( QuestID id, QuestState state ) : void
id QuestID The particular quest
state QuestState The state(s) to remove
리턴 void

setQuestAccepted() 공개 정적인 메소드

public static setQuestAccepted ( QuestID id ) : void
id QuestID
리턴 void

setQuestAvailable() 공개 정적인 메소드

public static setQuestAvailable ( QuestID id ) : void
id QuestID
리턴 void

setQuestComplete() 공개 정적인 메소드

public static setQuestComplete ( QuestID id ) : void
id QuestID
리턴 void

프로퍼티 상세

NUM_QUEST_IDS 공개적으로 정적으로 프로퍼티

public static int NUM_QUEST_IDS
리턴 int