C# 클래스 Aura.Channel.World.Entities.Creatures.CreatureQuests

파일 보기 프로젝트 열기: aura-project/aura

공개 메소드들

메소드 설명
Add ( Aura.Channel.World.Quests.Quest quest ) : void

Adds quest to manager and informs the client about it.

AddSilent ( Aura.Channel.World.Quests.Quest quest ) : void

Adds quest to manager, does not update client, send owl, or anything else.

This method is for initialization, use Give during run-time.

Complete ( Aura.Channel.World.Quests.Quest quest, bool owl ) : bool

Completes all objectives and the quest, if it exists, and removes quest from log. Rewards are taken from group 0, result "Perfect", because the objectives are set done.

Complete ( Aura.Channel.World.Quests.Quest quest, int rewardGroup, bool owl ) : bool

Completes quest and takes rewards from group and the result based on the progress on the current or last objective. Primarily used by PTJs.

Complete ( int questId, bool owl ) : bool

Completes and removes first incomplete instance of the given quest, provided that an incomplete one exists.

CreatureQuests ( Creature creature ) : Aura.Channel.Network.Sending

Creates new quest manager for creature.

Dispose ( ) : void

Unsubscribes from events.

Finish ( int questId, string objective ) : bool

Finishes objective for quest, returns false if quest doesn't exist or doesn't have the objective.

Get ( bool>.Func predicate ) : Aura.Channel.World.Quests.Quest

Returns first quest that maches the predicate, or null if there were none.

Get ( long uniqueId ) : Aura.Channel.World.Quests.Quest

Returns quest by unique quest id, or null if it wasn't found.

GetAllIncomplete ( int questId ) : Aura.Channel.World.Quests.Quest[]

Returns all incomplete quests with the given id.

GetFirstIncomplete ( int questId ) : Aura.Channel.World.Quests.Quest

Returns first uncompleted quest with the given quest id, or null if none were found.

GetIncompleteList ( ) : ICollection

Returns new list of incomplete quests in manager.

GetList ( ) : ICollection

Returns new list of all quests in manager.

GetPtjQuest ( ) : Aura.Channel.World.Quests.Quest

Returns current PTJ quest or null.

GetPtjTrackRecord ( PtjType type ) : Aura.Channel.World.Quests.PtjTrackRecord

Returns track record for type.

GetPtjTrackRecords ( ) : Aura.Channel.World.Quests.PtjTrackRecord[]

Returns new list of all track records.

GetQueueOwls ( ) : Aura.Channel.World.Quests.QuestOwl[]

Returns new list with all current quest owls.

GetSafe ( long uniqueId ) : Aura.Channel.World.Quests.Quest

Calls Get(long). If the result is null, throws SevereViolation.

GiveUp ( Aura.Channel.World.Quests.Quest quest ) : bool

Completes and removes quest without rewards, if it exists.

Has ( Aura.Channel.World.Quests.Quest quest ) : bool

Returns true if creature has the given quest.

Has ( int questId ) : bool

Returns true if creature has quest with the given quest id, completed or not.

HasAny ( ) : bool

Returns true if creature has quest with any of the the given quest ids, completed or not.

IsActive ( int questId, string objective = null ) : bool

Returns true if the quest is in progress, optionally also checking if it's on the given objective .

IsComplete ( int id ) : bool

Returns true if quest with the given id has been completed.

ModifyPtjTrackRecord ( PtjType type, int done, int success ) : void

Modifies track record, changing success, done, and last change.

QueueOwl ( int questId, System.DateTime arrival ) : void

Queues an owl to deliver the given quest after arrivel time, when changing regions.

Remove ( Aura.Channel.World.Quests.Quest quest ) : bool

Removes quest from manager and updates client, returns false if quest doesn't exist in this manager.

SendOwl ( int questId ) : void

Sends an owl to deliver a quest scroll for the given quest id to the player.

SendOwl ( int questId, int delay ) : void

Sends an owl to deliver a quest scroll for the given quest id to the player. If delay is not 0, the quest will arrive X seconds later.

SetPtjTrackRecord ( PtjType type, int done, int success ) : void

Sets track record, changing success, done, and last change.

Start ( int questId ) : void

Gives quest scroll for the given quest id to the player.

비공개 메소드들

메소드 설명
EndQuest ( Aura.Channel.World.Quests.Quest quest, int rewardGroup, bool owl ) : bool

Completes and removes quest, if it exists, giving the rewards in the process, if warranted.

GiveRewards ( Aura.Channel.World.Quests.Quest quest, ICollection rewards, bool owl ) : void

Gives quest rewards to creature.

OnOwlTick ( object state ) : void

Called regularly to check for owls to send.

StartByOwl ( int questId ) : void

Gives quest scroll for the given quest id to the player and shows owl arriving.

메소드 상세

Add() 공개 메소드

Adds quest to manager and informs the client about it.
public Add ( Aura.Channel.World.Quests.Quest quest ) : void
quest Aura.Channel.World.Quests.Quest
리턴 void

AddSilent() 공개 메소드

Adds quest to manager, does not update client, send owl, or anything else.
This method is for initialization, use Give during run-time.
public AddSilent ( Aura.Channel.World.Quests.Quest quest ) : void
quest Aura.Channel.World.Quests.Quest
리턴 void

Complete() 공개 메소드

Completes all objectives and the quest, if it exists, and removes quest from log. Rewards are taken from group 0, result "Perfect", because the objectives are set done.
public Complete ( Aura.Channel.World.Quests.Quest quest, bool owl ) : bool
quest Aura.Channel.World.Quests.Quest
owl bool Show owl delivering the quest?
리턴 bool

Complete() 공개 메소드

Completes quest and takes rewards from group and the result based on the progress on the current or last objective. Primarily used by PTJs.
public Complete ( Aura.Channel.World.Quests.Quest quest, int rewardGroup, bool owl ) : bool
quest Aura.Channel.World.Quests.Quest
rewardGroup int Reward group to use.
owl bool Show owl delivering the quest?
리턴 bool

Complete() 공개 메소드

Completes and removes first incomplete instance of the given quest, provided that an incomplete one exists.
public Complete ( int questId, bool owl ) : bool
questId int
owl bool Show owl delivering the quest?
리턴 bool

CreatureQuests() 공개 메소드

Creates new quest manager for creature.
public CreatureQuests ( Creature creature ) : Aura.Channel.Network.Sending
creature Creature
리턴 Aura.Channel.Network.Sending

Dispose() 공개 메소드

Unsubscribes from events.
public Dispose ( ) : void
리턴 void

Finish() 공개 메소드

Finishes objective for quest, returns false if quest doesn't exist or doesn't have the objective.
public Finish ( int questId, string objective ) : bool
questId int
objective string
리턴 bool

Get() 공개 메소드

Returns first quest that maches the predicate, or null if there were none.
public Get ( bool>.Func predicate ) : Aura.Channel.World.Quests.Quest
predicate bool>.Func
리턴 Aura.Channel.World.Quests.Quest

Get() 공개 메소드

Returns quest by unique quest id, or null if it wasn't found.
public Get ( long uniqueId ) : Aura.Channel.World.Quests.Quest
uniqueId long
리턴 Aura.Channel.World.Quests.Quest

GetAllIncomplete() 공개 메소드

Returns all incomplete quests with the given id.
public GetAllIncomplete ( int questId ) : Aura.Channel.World.Quests.Quest[]
questId int
리턴 Aura.Channel.World.Quests.Quest[]

GetFirstIncomplete() 공개 메소드

Returns first uncompleted quest with the given quest id, or null if none were found.
public GetFirstIncomplete ( int questId ) : Aura.Channel.World.Quests.Quest
questId int
리턴 Aura.Channel.World.Quests.Quest

GetIncompleteList() 공개 메소드

Returns new list of incomplete quests in manager.
public GetIncompleteList ( ) : ICollection
리턴 ICollection

GetList() 공개 메소드

Returns new list of all quests in manager.
public GetList ( ) : ICollection
리턴 ICollection

GetPtjQuest() 공개 메소드

Returns current PTJ quest or null.
public GetPtjQuest ( ) : Aura.Channel.World.Quests.Quest
리턴 Aura.Channel.World.Quests.Quest

GetPtjTrackRecord() 공개 메소드

Returns track record for type.
public GetPtjTrackRecord ( PtjType type ) : Aura.Channel.World.Quests.PtjTrackRecord
type PtjType
리턴 Aura.Channel.World.Quests.PtjTrackRecord

GetPtjTrackRecords() 공개 메소드

Returns new list of all track records.
public GetPtjTrackRecords ( ) : Aura.Channel.World.Quests.PtjTrackRecord[]
리턴 Aura.Channel.World.Quests.PtjTrackRecord[]

GetQueueOwls() 공개 메소드

Returns new list with all current quest owls.
public GetQueueOwls ( ) : Aura.Channel.World.Quests.QuestOwl[]
리턴 Aura.Channel.World.Quests.QuestOwl[]

GetSafe() 공개 메소드

Calls Get(long). If the result is null, throws SevereViolation.
public GetSafe ( long uniqueId ) : Aura.Channel.World.Quests.Quest
uniqueId long
리턴 Aura.Channel.World.Quests.Quest

GiveUp() 공개 메소드

Completes and removes quest without rewards, if it exists.
public GiveUp ( Aura.Channel.World.Quests.Quest quest ) : bool
quest Aura.Channel.World.Quests.Quest
리턴 bool

Has() 공개 메소드

Returns true if creature has the given quest.
public Has ( Aura.Channel.World.Quests.Quest quest ) : bool
quest Aura.Channel.World.Quests.Quest
리턴 bool

Has() 공개 메소드

Returns true if creature has quest with the given quest id, completed or not.
public Has ( int questId ) : bool
questId int
리턴 bool

HasAny() 공개 메소드

Returns true if creature has quest with any of the the given quest ids, completed or not.
public HasAny ( ) : bool
리턴 bool

IsActive() 공개 메소드

Returns true if the quest is in progress, optionally also checking if it's on the given objective .
public IsActive ( int questId, string objective = null ) : bool
questId int
objective string
리턴 bool

IsComplete() 공개 메소드

Returns true if quest with the given id has been completed.
public IsComplete ( int id ) : bool
id int
리턴 bool

ModifyPtjTrackRecord() 공개 메소드

Modifies track record, changing success, done, and last change.
public ModifyPtjTrackRecord ( PtjType type, int done, int success ) : void
type PtjType
done int
success int
리턴 void

QueueOwl() 공개 메소드

Queues an owl to deliver the given quest after arrivel time, when changing regions.
public QueueOwl ( int questId, System.DateTime arrival ) : void
questId int
arrival System.DateTime
리턴 void

Remove() 공개 메소드

Removes quest from manager and updates client, returns false if quest doesn't exist in this manager.
public Remove ( Aura.Channel.World.Quests.Quest quest ) : bool
quest Aura.Channel.World.Quests.Quest
리턴 bool

SendOwl() 공개 메소드

Sends an owl to deliver a quest scroll for the given quest id to the player.
public SendOwl ( int questId ) : void
questId int
리턴 void

SendOwl() 공개 메소드

Sends an owl to deliver a quest scroll for the given quest id to the player. If delay is not 0, the quest will arrive X seconds later.
public SendOwl ( int questId, int delay ) : void
questId int Id of the quest to send.
delay int The delay in seconds.
리턴 void

SetPtjTrackRecord() 공개 메소드

Sets track record, changing success, done, and last change.
public SetPtjTrackRecord ( PtjType type, int done, int success ) : void
type PtjType
done int
success int
리턴 void

Start() 공개 메소드

Gives quest scroll for the given quest id to the player.
public Start ( int questId ) : void
questId int
리턴 void