コード例 #1
0
 public ControllableObject(Player owner, Zone initialBounds)
     : base(initialBounds)
 {
     Owner = owner;
     Owner.AddObject(this);
     currentTask = new IdleTask();
     currentTask.Finished = true;
 }
コード例 #2
0
ファイル: Unit.cs プロジェクト: righnatios/HenryRTS
        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
ファイル: Gatherer.cs プロジェクト: righnatios/HenryRTS
 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
ファイル: BigAssWall.cs プロジェクト: righnatios/HenryRTS
 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
ファイル: Cache.cs プロジェクト: righnatios/HenryRTS
        public Cache(Player owner, Map m, Point position) : base(owner, m, new Zone(position.X, position.Y, CacheSize.X, CacheSize.Y)) {

        }
コード例 #6
0
ファイル: OffensiveUnit.cs プロジェクト: righnatios/HenryRTS
 public OffensiveUnit(Player owner, Zone bounds) : base(owner, bounds) {
 }