public ControllableObject(Player owner, Zone initialBounds) : base(initialBounds) { Owner = owner; Owner.AddObject(this); currentTask = new IdleTask(); currentTask.Finished = true; }
public Unit(Player owner, Zone initialBounds) : base(owner, initialBounds) { Idle = new Animation("WhitePixel"); Idle.Bounds.Width = this.Width; Idle.Bounds.Height = this.Height; Moving = new Animation("WhitePixel"); Moving.Bounds.Width = this.Width; Moving.Bounds.Height = this.Height; Attacking = new Animation("WhitePixel"); Attacking.Bounds.Width = this.Width; Attacking.Bounds.Height = this.Height; Dying = new Animation("WhitePixel"); Dying.Bounds.Width = this.Width; Dying.Bounds.Height = this.Height; }
public Gatherer(Player owner, Point initialPosition) : base(owner, new Zone(initialPosition.X, initialPosition.Y, GathererSize.X, GathererSize.Y)) { Idle.SpriteName = "GathererIdle"; selectionCircleOffset = 16; healthMax = GathererHealth; health = healthMax; }
public BigAssWall(Player p, Map m, Point position) : base(p, m, new Zone(position.X, position.Y, BigAssWallDimensions.X, BigAssWallDimensions.Y)) { Position = position.Vector; }
public Cache(Player owner, Map m, Point position) : base(owner, m, new Zone(position.X, position.Y, CacheSize.X, CacheSize.Y)) { }
public OffensiveUnit(Player owner, Zone bounds) : base(owner, bounds) { }