Inheritance Hierarchy
DeltaEngine.Entities Entity
CreepyTowers Player
Namespace: CreepyTowers
Assembly: CreepyTowers (in CreepyTowers.exe) Version: 1.1.1.0 (1.1.1)
Syntax
The Player type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() | Player | Initializes a new instance of the Player class |
Methods
Name | Description | |
---|---|---|
![]() | Add T | (Inherited from Entity.) |
![]() | AddTag | (Inherited from Entity.) |
![]() | ChangeAvatar | |
![]() | ClearTags | (Inherited from Entity.) |
![]() | Contains T | (Inherited from Entity.) |
![]() | ContainsBehavior T | (Inherited from Entity.) |
![]() | ContainsTag | (Inherited from Entity.) |
![]() | Deactivate | (Inherited from Entity.) |
![]() | Dispose | (Inherited from Entity.) |
![]() | Get T |
Gets a specific component, derived classes can return faster cached values (e.g. Entity2D)
View code on GitHub (Inherited from Entity.) |
![]() | GetActiveBehaviors | (Inherited from Entity.) |
![]() | GetComponentsForSaving | (Inherited from Entity.) |
![]() | GetOrDefault T | (Inherited from Entity.) |
![]() | GetTags | (Inherited from Entity.) |
![]() | Remove T | (Inherited from Entity.) |
![]() | RemoveTag | (Inherited from Entity.) |
![]() | Set | (Inherited from Entity.) |
![]() | SetComponents | (Inherited from Entity.) |
![]() | Start T | (Inherited from Entity.) |
![]() | Stop T | (Inherited from Entity.) |
![]() | ToString | (Inherited from Entity.) |
![]() | UnlockAvatar |
Fields
Name | Description | |
---|---|---|
![]() | components | (Inherited from Entity.) |
Properties
Name | Description | |
---|---|---|
![]() | AvailableAvatars | |
![]() | Avatar | |
![]() ![]() | Current | |
![]() | Gems | |
![]() | Gold | |
![]() | IsActive | (Inherited from Entity.) |
![]() | IsPauseable | (Inherited from Entity.) |
![]() | LivesLeft | |
![]() | MaxLives | |
![]() | Name | |
![]() | NumberOfComponents | (Inherited from Entity.) |
![]() | ProgressLevel | |
![]() | Time | |
![]() | UpdatePriority | (Inherited from Entity.) |
![]() | Xp |
Remarks
Examples
[Test, CloseAfterFirstFrame] public void CheckPlayerName() { Assert.AreEqual("mYsT", player.Name); }
[Test, CloseAfterFirstFrame] public void CheckPlayerDragonAvatar() { Assert.AreEqual(typeof(Dragon), player.Avatar.GetType()); Assert.AreEqual(1, EntitiesRunner.Current.GetEntitiesOfType<Avatar>().Count); }
[Test, CloseAfterFirstFrame] public void CheckPlayerPenguinAvatar() { player.UnlockAvatar(CreepyTowers.Content.Avatars.Penguin); player.ChangeAvatar(CreepyTowers.Content.Avatars.Penguin); Assert.AreEqual(typeof(Penguin), player.Avatar.GetType()); }
See Also