Show / Hide Table of Contents

Class Foe

A quest Foe defines an enemy for player to fight as part of a quest. Foes are a 1-to-many resource (1 Foe resource to many entities). For example, a quest might send waves of giants at the player.

Inheritance
Object
QuestResource
Foe
Inherited Members
QuestResource.BLANK
QuestResource.Symbol
QuestResource.ParentQuest
QuestResource.InfoMessageID
QuestResource.UsedMessageID
QuestResource.RumorsMessageID
QuestResource.HasPlayerClicked
QuestResource.IsHidden
QuestResource.QuestResourceBehaviour
QuestResource.Tick(Quest)
QuestResource.PostTick(Quest)
QuestResource.ParseMessageTags(String)
QuestResource.Dispose()
QuestResource.SetPlayerClicked()
QuestResource.RearmPlayerClick()
QuestResource.GetMessage(Int32)
QuestResource.GetResourceSaveData()
QuestResource.RestoreResourceSaveData(QuestResource.ResourceSaveData_v1)
Namespace: DaggerfallWorkshop.Game.Questing
Assembly: Assembly-CSharp.dll
Syntax
public class Foe : QuestResource, IDisposable

Constructors

| Improve this Doc View Source

Foe(Quest)

Declaration
public Foe(Quest parentQuest)
Parameters
Type Name Description
Quest parentQuest
| Improve this Doc View Source

Foe(Quest, String)

Declaration
public Foe(Quest parentQuest, string line)
Parameters
Type Name Description
Quest parentQuest
String line

Properties

| Improve this Doc View Source

DeathTrigger

Declaration
public bool DeathTrigger { get; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

FoeType

Declaration
public MobileTypes FoeType { get; }
Property Value
Type Description
MobileTypes
| Improve this Doc View Source

Gender

Declaration
public override Genders Gender { get; }
Property Value
Type Description
Genders
Overrides
QuestResource.Gender
| Improve this Doc View Source

InjuredTrigger

Declaration
public bool InjuredTrigger { get; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

IsRestrained

Declaration
public bool IsRestrained { get; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

ItemQueueCount

Declaration
public int ItemQueueCount { get; }
Property Value
Type Description
Int32
| Improve this Doc View Source

KillCount

Declaration
public int KillCount { get; }
Property Value
Type Description
Int32
| Improve this Doc View Source

SpawnCount

Declaration
public int SpawnCount { get; }
Property Value
Type Description
Int32
| Improve this Doc View Source

SpellQueue

Declaration
public List<SpellReference> SpellQueue { get; }
Property Value
Type Description
List<SpellReference>

Methods

| Improve this Doc View Source

ClearRestrained()

Clears restrained flag.

Declaration
public void ClearRestrained()
| Improve this Doc View Source

ExpandMacro(MacroTypes, out String)

Declaration
public override bool ExpandMacro(MacroTypes macro, out string textOut)
Parameters
Type Name Description
MacroTypes macro
String textOut
Returns
Type Description
Boolean
Overrides
QuestResource.ExpandMacro(MacroTypes, out String)
| Improve this Doc View Source

GetClonedItemQueue()

Gets a clone of all items queued on this Foe. Original item UIDs will remain on Foe in their item queue.

Declaration
public DaggerfallUnityItem[] GetClonedItemQueue()
Returns
Type Description
DaggerfallUnityItem[]

Clone of item queue.

| Improve this Doc View Source

GetSaveData()

Declaration
public override object GetSaveData()
Returns
Type Description
Object
Overrides
QuestResource.GetSaveData()
| Improve this Doc View Source

IncrementKills(Int32)

Increments count of this Foe killed by player.

Declaration
public void IncrementKills(int amount = 1)
Parameters
Type Name Description
Int32 amount

Amount to raise by, usually 1.

| Improve this Doc View Source

Kill()

Declaration
public void Kill()
| Improve this Doc View Source

QueueItem(DaggerfallUnityItem)

Queues an item to be added to Foe inventory. Clone of item will be added to all instances of Foe, current and future.

Declaration
public void QueueItem(DaggerfallUnityItem item)
Parameters
Type Name Description
DaggerfallUnityItem item

Item to add.

| Improve this Doc View Source

QueueSpell(SpellReference)

Queues a spell to cast on this Foe.

Declaration
public void QueueSpell(SpellReference spell)
Parameters
Type Name Description
SpellReference spell

Spell to cast.

| Improve this Doc View Source

RearmInjured()

Rearms injured pickup.

Declaration
public void RearmInjured()
| Improve this Doc View Source

RestoreSaveData(Object)

Declaration
public override void RestoreSaveData(object dataIn)
Parameters
Type Name Description
Object dataIn
Overrides
QuestResource.RestoreSaveData(Object)
| Improve this Doc View Source

SetInjured()

Triggers injured pickup.

Declaration
public void SetInjured()
| Improve this Doc View Source

SetResource(String)

Declaration
public override void SetResource(string line)
Parameters
Type Name Description
String line
Overrides
QuestResource.SetResource(String)
| Improve this Doc View Source

SetRestrained()

Sets restrained flag.

Declaration
public void SetRestrained()
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX