public SYCreep(Vector2 position, SYCreepCamp camp, CustomStats stats, Map map) : base(position, map) { id = Map.AddCreep(this); creepCamp = camp; creepStats = stats; health = MaxHealth; //Required because called virtual method in constructor :( SendExistanceToPlayer(Map.playerList); }
public SYScroot(Vector2 position, SYCreepCamp camp, Map map) : base(position, camp, CreepStats.Scroot, map) { stats.MaxVelocity = GetStat <float>("chaseSpeed"); stats.AccelerationTime = GetStat <float>("accelerationTime"); stats.DecelerationTime = GetStat <float>("accelerationTime"); idleStats.MaxVelocity = GetStat <float>("idleSpeed"); idleStats.AccelerationTime = GetStat <float>("accelerationTime"); idleStats.DecelerationTime = GetStat <float>("accelerationTime"); reloadTimer = new Timer(ReloadTime, false); chargeTimer = new Timer(ChargeTime, true); }