SafeAndFree.Creep.Creep C# (CSharp) Метод

Creep() публичный Метод

Creep instance constructor.
public Creep ( CreepTypeData creepData, Vector2 position, MEDIA_ID textureID ) : System
creepData SafeAndFree.Enumerations.CreepTypeData
position Vector2 The spawning position.
textureID MEDIA_ID The MEDIA_ID for this creep's texture.
Результат System
        public Creep(CreepTypeData creepData, Vector2 position, MEDIA_ID textureID)
        {
            CurrentDebuffs = new List<Debuff>();
            this.CenterPosition = new Vector2(position.X , position.Y);
            this.TextureID = textureID;

            DistanceTravelled = 0;

            Rotation = 0;

            this.stats = new Dictionary<CreepStats, int>();
            this.stats.Add(CreepStats.Width, creepData.Width);
            this.stats.Add(CreepStats.Height, creepData.Height);
            this.stats.Add(CreepStats.Health, creepData.Health);
            this.stats.Add(CreepStats.DamageToPlayer, creepData.DamageToPlayer);
            this.stats.Add(CreepStats.Speed, creepData.Speed);
            this.ScoreValue = creepData.Health;
        }

Same methods

Creep::Creep ( CreepTypeData creepData, Vector2 position, MEDIA_ID textureID, int path, int startingWaypoint ) : System