C# Class Gruppe22.Backend.QuestStep

Mostrar archivo Open project: propra13-orga/gruppe22

Public Methods

Method Description
AddChange ( MapChange change, ChangeType type ) : void

Add an effect to be applied on map state change

AddRequirement ( QuestRequirement requirement ) : void

Add a specific requirement to be performed before queststep is finished

ClearChanges ( ChangeType type ) : void

Clear all changes which would happen on specified map state changes

ClearRequirements ( ) : void

Remove all requirements from the list of requirements

Completed ( Actor actor ) : bool

Check whether all requirements are met by a specified actor

QuestStep ( string description = "", string objective = "", string completion = "", QuestStepType type = QuestStepType.Normal, List requirements = null, List starteffect = null, List endeffect = null, List blockeffect = null ) : System

Constructor

RemoveChange ( MapChange change, ChangeType type ) : void

Remove a specific effect from the list of map state effects

RemoveChange ( int i, ChangeType type ) : void

Remove a specific effect from the list of map state effects

RemoveRequirement ( QuestRequirement q ) : void

Remove a specific requirement from the list of requirements

RemoveRequirement ( int i ) : void

Remove a specific requirement from the list of requirements

Method Details

AddChange() public method

Add an effect to be applied on map state change
public AddChange ( MapChange change, ChangeType type ) : void
change MapChange
type ChangeType
return void

AddRequirement() public method

Add a specific requirement to be performed before queststep is finished
public AddRequirement ( QuestRequirement requirement ) : void
requirement QuestRequirement
return void

ClearChanges() public method

Clear all changes which would happen on specified map state changes
public ClearChanges ( ChangeType type ) : void
type ChangeType
return void

ClearRequirements() public method

Remove all requirements from the list of requirements
public ClearRequirements ( ) : void
return void

Completed() public method

Check whether all requirements are met by a specified actor
public Completed ( Actor actor ) : bool
actor Actor
return bool

QuestStep() public method

Constructor
public QuestStep ( string description = "", string objective = "", string completion = "", QuestStepType type = QuestStepType.Normal, List requirements = null, List starteffect = null, List endeffect = null, List blockeffect = null ) : System
description string
objective string
completion string
type QuestStepType
requirements List
starteffect List
endeffect List
blockeffect List
return System

RemoveChange() public method

Remove a specific effect from the list of map state effects
public RemoveChange ( MapChange change, ChangeType type ) : void
change MapChange
type ChangeType
return void

RemoveChange() public method

Remove a specific effect from the list of map state effects
public RemoveChange ( int i, ChangeType type ) : void
i int
type ChangeType
return void

RemoveRequirement() public method

Remove a specific requirement from the list of requirements
public RemoveRequirement ( QuestRequirement q ) : void
q QuestRequirement
return void

RemoveRequirement() public method

Remove a specific requirement from the list of requirements
public RemoveRequirement ( int i ) : void
i int
return void