Creeps and Towers are both Agents
View code on GitHub
Inheritance Hierarchy
DeltaEngine.Entities Entity
DeltaEngine.Entities DrawableEntity
DeltaEngine.Rendering3D Entity3D
DeltaEngine.Rendering3D HierarchyEntity3D
DeltaEngine.GameLogic Actor3D
CreepyTowers Agent
CreepyTowers.Enemy Enemy
CreepyTowers.Towers Tower
Namespace: CreepyTowers
Assembly: CreepyTowers (in CreepyTowers.exe) Version: 1.1.1.0 (1.1.1)
Syntax
The Agent type exposes the following members.
Constructors
Name | Description | |
---|---|---|
Agent | Initializes a new instance of the Agent class |
Methods
Fields
Name | Description | |
---|---|---|
components | (Inherited from Entity.) | |
lastOrientation | (Inherited from Entity3D.) | |
lastPosition | (Inherited from Entity3D.) | |
lastTickLerpComponents |
Each element can either be a Lerp, a Lerp List or an array of Lerp objects.
View code on GitHub (Inherited from DrawableEntity.) |
Properties
Name | Description | |
---|---|---|
Children | (Inherited from HierarchyEntity3D.) | |
IsActive | (Inherited from HierarchyEntity3D.) | |
IsPauseable | (Inherited from Entity.) | |
IsVisible | (Inherited from DrawableEntity.) | |
Model | ||
Name | ||
NumberOfComponents | (Inherited from Entity.) | |
Orientation | (Inherited from Entity3D.) | |
Parent | (Inherited from HierarchyEntity3D.) | |
Position | (Inherited from Entity3D.) | |
RelativeOrientation | (Inherited from HierarchyEntity3D.) | |
RelativePosition | (Inherited from HierarchyEntity3D.) | |
RenderLayer | (Inherited from DrawableEntity.) | |
RotationZ | (Inherited from Actor3D.) | |
Scale | (Inherited from Entity3D.) | |
ScaleFactor | (Inherited from Actor3D.) | |
Stats | ||
UpdatePriority | (Inherited from Entity.) |
Events
Name | Description | |
---|---|---|
OrientationChanged | (Inherited from Actor3D.) | |
PositionChanged | (Inherited from Actor3D.) | |
ScaleChanged | (Inherited from Actor3D.) |
Remarks
Examples
[Test] public void InitialValues() { Assert.AreEqual(100.0, creep.GetStatValue("Hp")); Assert.AreEqual(1.0, creep.GetStatPercentage("Hp")); }
[Test] public void ApplyBuff() { creep.ApplyBuff(new BuffEffect("TestHpBuff")); Assert.AreEqual(304.0, creep.GetStatValue("Hp")); Assert.AreEqual(100.0, creep.GetStatBaseValue("Hp")); Assert.AreEqual(1.0, creep.GetStatPercentage("Hp")); }
[Test] public void ReceiveBuffOnAttributeItDoesNotHave() { Assert.DoesNotThrow(() => creep.ApplyBuff(new BuffEffect("DragonRangeMultiplier"))); }
See Also