示例#1
0
 public ControllableObject(Player owner, Zone initialBounds)
     : base(initialBounds)
 {
     Owner = owner;
     Owner.AddObject(this);
     currentTask = new IdleTask();
     currentTask.Finished = true;
 }
示例#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;
        }
示例#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;
 }
示例#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;
 }
示例#5
0
        public Cache(Player owner, Map m, Point position) : base(owner, m, new Zone(position.X, position.Y, CacheSize.X, CacheSize.Y)) {

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