public ControllableObject(Player owner, Zone initialBounds)
     : base(initialBounds)
 {
     Owner = owner;
     Owner.AddObject(this);
     currentTask = new IdleTask();
     currentTask.Finished = true;
 }
Example #2
0
        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;
        }
Example #3
0
 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;
 }
Example #4
0
 public BigAssWall(Player p, Map m, Point position) : base(p, m, new Zone(position.X, position.Y, BigAssWallDimensions.X, BigAssWallDimensions.Y)) {
     Position = position.Vector;
 }
Example #5
0
        public Cache(Player owner, Map m, Point position) : base(owner, m, new Zone(position.X, position.Y, CacheSize.X, CacheSize.Y)) {

        }
Example #6
0
 public OffensiveUnit(Player owner, Zone bounds) : base(owner, bounds) {
 }