Coin ClassDelta Engine Documentation
Adds to player gold when collected View code on GitHub
Inheritance Hierarchy

System Object
  DeltaEngine.Entities Entity
    DeltaEngine.Entities DrawableEntity
      DeltaEngine.Rendering3D Entity3D
        DeltaEngine.Rendering3D HierarchyEntity3D
          DeltaEngine.GameLogic Actor3D
            CreepyTowers.Collectables Collectable
              CreepyTowers.Collectables Coin

Namespace: CreepyTowers.Collectables
Assembly: CreepyTowers (in CreepyTowers.exe) Version: 1.1.1.0 (1.1.1)
Syntax

public class Coin : Collectable

The Coin type exposes the following members.

Constructors

  NameDescription
Public methodCoin
Initializes a new instance of the Coin class
Top
Methods

  NameDescription
Public methodAdd(HierarchyObject3D) (Inherited from HierarchyEntity3D.)
Public methodAdd T (T) (Inherited from Entity3D.)
Public methodAddTag (Inherited from Entity.)
Public methodClearTags (Inherited from Entity.)
Public methodCollect
Public methodContains T  (Inherited from Entity3D.)
Public methodContainsBehavior T  (Inherited from Entity.)
Public methodContainsTag (Inherited from Entity.)
Protected methodDeactivate (Inherited from Entity.)
Public methodDispose (Inherited from Entity.)
Public methodGet T  (Inherited from Entity3D.)
Protected methodGetActiveBehaviors (Inherited from Entity.)
Public methodGetBoundingBox (Inherited from Actor3D.)
Public methodGetBoundingSphere (Inherited from Actor3D.)
Protected methodGetComponentsForSaving (Inherited from Entity3D.)
Public methodGetDrawArea (Inherited from Actor3D.)
Protected methodGetDrawBehaviors (Inherited from DrawableEntity.)
Public methodGetFirstChildOfType T  (Inherited from HierarchyEntity3D.)
Public methodGetInterpolatedArray T  (Inherited from DrawableEntity.)
Public methodGetInterpolatedList T  (Inherited from DrawableEntity.)
Public methodGetOrDefault T  (Inherited from Entity.)
Public methodGetTags (Inherited from Entity.)
Public methodIs2D (Inherited from Actor3D.)
Public methodIsColliding (Inherited from Actor3D.)
Protected methodNextUpdateStarted (Inherited from Entity3D.)
Public methodOnDraw T  (Inherited from DrawableEntity.)
Protected methodOnOrientationChanged (Inherited from Actor3D.)
Protected methodOnPositionChanged (Inherited from Actor3D.)
Protected methodOnScaleChanged (Inherited from Actor3D.)
Public methodRemove(HierarchyObject3D) (Inherited from HierarchyEntity3D.)
Public methodRemove T   (Inherited from Entity.)
Public methodRemoveTag (Inherited from Entity.)
Public methodRenderModel (Overrides Actor3D RenderModel .)
Public methodSet (Inherited from Entity3D.)
Public methodSetComponents (Inherited from Entity.)
Public methodSetWithoutInterpolation T  (Inherited from Entity3D.)
Public methodStart T  (Inherited from Entity.)
Public methodStop T  (Inherited from Entity.)
Public methodToggleVisibility (Inherited from DrawableEntity.)
Public methodToString (Inherited from Entity.)
Public methodUpdateGlobalsFromParent (Inherited from HierarchyEntity3D.)
Top
Fields

  NameDescription
Protected fieldcomponents (Inherited from Entity.)
Protected fieldlastOrientation (Inherited from Entity3D.)
Protected fieldlastPosition (Inherited from Entity3D.)
Protected fieldlastTickLerpComponents
Each element can either be a Lerp, a Lerp List or an array of Lerp objects. View code on GitHub
(Inherited from DrawableEntity.)
Top
Properties

  NameDescription
Public propertyChildren (Inherited from HierarchyEntity3D.)
Public propertyDamage (Inherited from Collectable.)
Public propertyDamageRange (Inherited from Collectable.)
Public propertyDamageRangeSquared (Inherited from Collectable.)
Public propertyDamageType (Inherited from Collectable.)
Public propertyIsActive (Inherited from HierarchyEntity3D.)
Public propertyIsPauseable (Inherited from Entity.)
Public propertyIsVisible (Inherited from DrawableEntity.)
Public propertyNumberOfComponents (Inherited from Entity.)
Public propertyOrientation (Inherited from Entity3D.)
Public propertyParent (Inherited from HierarchyEntity3D.)
Public propertyPosition (Inherited from Entity3D.)
Public propertyRelativeOrientation (Inherited from HierarchyEntity3D.)
Public propertyRelativePosition (Inherited from HierarchyEntity3D.)
Public propertyRenderLayer (Inherited from DrawableEntity.)
Public propertyRotationZ (Inherited from Actor3D.)
Public propertyScale (Inherited from Entity3D.)
Public propertyScaleFactor (Inherited from Actor3D.)
Public propertyUpdatePriority (Inherited from Entity.)
Top
Events

  NameDescription
Public eventOrientationChanged (Inherited from Actor3D.)
Public eventPositionChanged (Inherited from Actor3D.)
Public eventScaleChanged (Inherited from Actor3D.)
Top
Remarks

Tests: CreepyTowers.Tests.Collectables.CoinTests
Examples

2 unit tests call CreepyTowers.Collectables.Coin
[Test]
public void InitialValues()
{
    Assert.AreEqual(new Vector3D(1, 2, 3), coin.Position);
}
[Test]
public void CollectCoin()
{
    var player = new Player();
    coin.Collect();
    Assert.AreEqual(4, player.Gold);
}
See Also