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.
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
Properties
|
Improve this Doc
View Source
DeathTrigger
Declaration
public bool DeathTrigger { get; }
Property Value
|
Improve this Doc
View Source
FoeType
Declaration
public MobileTypes FoeType { get; }
Property Value
|
Improve this Doc
View Source
Gender
Declaration
public override Genders Gender { get; }
Property Value
Overrides
|
Improve this Doc
View Source
InjuredTrigger
Declaration
public bool InjuredTrigger { get; }
Property Value
|
Improve this Doc
View Source
IsRestrained
Declaration
public bool IsRestrained { get; }
Property Value
|
Improve this Doc
View Source
ItemQueueCount
Declaration
public int ItemQueueCount { get; }
Property Value
|
Improve this Doc
View Source
KillCount
Declaration
public int KillCount { get; }
Property Value
|
Improve this Doc
View Source
SpawnCount
Declaration
public int SpawnCount { get; }
Property Value
|
Improve this Doc
View Source
SpellQueue
Declaration
public List<SpellReference> SpellQueue { get; }
Property Value
Methods
|
Improve this Doc
View Source
ClearRestrained()
Declaration
public void ClearRestrained()
|
Improve this Doc
View Source
ExpandMacro(MacroTypes, out String)
Declaration
public override bool ExpandMacro(MacroTypes macro, out string textOut)
Parameters
Returns
Overrides
|
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
|
Improve this Doc
View Source
GetSaveData()
Declaration
public override object GetSaveData()
Returns
Overrides
|
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
|
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
|
Improve this Doc
View Source
QueueSpell(SpellReference)
Queues a spell to cast on this Foe.
Declaration
public void QueueSpell(SpellReference spell)
Parameters
|
Improve this Doc
View Source
RearmInjured()
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
|
Improve this Doc
View Source
SetInjured()
Declaration
|
Improve this Doc
View Source
SetResource(String)
Declaration
public override void SetResource(string line)
Parameters
Type |
Name |
Description |
String |
line |
|
Overrides
|
Improve this Doc
View Source
SetRestrained()
Declaration
public void SetRestrained()