} //...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; }
//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; }