コード例 #1
0
        }                                                       //...the system that the target is in.

        //The basic constructor for this class.
        public MovementOrder(IntVec2 targetPos, StarSystem targetSystem)
        {
            orderType         = "MovementOrder";
            this.targetPos    = targetPos;
            this.targetSystem = targetSystem;
        }
コード例 #2
0
 //Called whenever the ship exits hyperspace. Essentially starts the hyperdrive's cooldown,
 //and also updates the current system of the ship.
 public void ExitedHyperspace(StarSystem arrivedAtSystem)
 {
     turnHyperDriveIsReady = TurnManager.currentTurn + hyperDriveCooldown;
     currentSystem         = arrivedAtSystem;
 }