|
@@ -1,18 +1,35 @@
|
|
|
package main
|
|
|
|
|
|
+type ComputerCombatMode uint8
|
|
|
+
|
|
|
+const (
|
|
|
+ CCM_Passive ComputerCombatMode = iota
|
|
|
+ CCM_Defend
|
|
|
+ CCM_Attack
|
|
|
+)
|
|
|
+
|
|
|
type ShipModel struct {
|
|
|
ID ID
|
|
|
Name string
|
|
|
+ RequiredExperience uint64
|
|
|
+ RequiredAlignment int64
|
|
|
MaxFighters uint64
|
|
|
MaxShields uint64
|
|
|
+ FightersPerAttack uint64
|
|
|
+ HasComputerController bool
|
|
|
+ MaxHolds uint64
|
|
|
+ MaxGenUpgrades uint64
|
|
|
+ StartingHolds uint64
|
|
|
GenShieldAmount uint64
|
|
|
GenShieldTurns uint64
|
|
|
GenFighterAmount uint64
|
|
|
GenFighterTurns uint64
|
|
|
- CanLand bool
|
|
|
- AttackRatio float32
|
|
|
- DefenseRatio float32
|
|
|
- CanWarp bool
|
|
|
+ MaxHangers uint64
|
|
|
+ StartingHangers uint64
|
|
|
+ CanLand bool
|
|
|
+ OrbitRatio float32
|
|
|
+ CanWarp bool
|
|
|
+ WarpCost uint64
|
|
|
}
|
|
|
|
|
|
type Ship struct {
|
|
@@ -21,8 +38,27 @@ type Ship struct {
|
|
|
CorpOwned bool
|
|
|
Model ID
|
|
|
Name string
|
|
|
+ ComputerControlled bool
|
|
|
+ CombatMode ComputerCombatMode
|
|
|
+ ComputedAttackAmount float32
|
|
|
+ LandedOn ID
|
|
|
+ InShip bool
|
|
|
+ Hangers uint64
|
|
|
Fighters uint64
|
|
|
Shields uint64
|
|
|
GenFighterTick uint64
|
|
|
GenShieldTick uint64
|
|
|
+ GenUpgrades uint64
|
|
|
+ GenUpFighterAmount uint64
|
|
|
+ GenUpFighterTurns uint64
|
|
|
+ GenUpShieldAmount uint64
|
|
|
+ GenUpShieldTurns uint64
|
|
|
+ Holds uint64
|
|
|
+ Ore uint64
|
|
|
+ Org uint64
|
|
|
+ Equ uint64
|
|
|
+ People uint64
|
|
|
+ Mines uint64
|
|
|
+ TrackerMines uint64
|
|
|
+ WarpDrive bool
|
|
|
}
|