Skip to content

Commit

Permalink
struct with all objs
Browse files Browse the repository at this point in the history
  • Loading branch information
alaingilbert committed Aug 26, 2018
1 parent 16f2d9a commit 1f34be2
Showing 1 changed file with 124 additions and 0 deletions.
124 changes: 124 additions & 0 deletions ogame.go
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,130 @@ type Defense interface {
GetRapidfireFrom() map[ID]int
}

type ObjsStruct struct {
AllianceDepot *allianceDepot
CrystalMine *crystalMine
CrystalStorage *crystalStorage
DeuteriumSynthesizer *deuteriumSynthesizer
DeuteriumTank *deuteriumTank
FusionReactor *fusionReactor
MetalMine *metalMine
MetalStorage *metalStorage
MissileSilo *missileSilo
NaniteFactory *naniteFactory
ResearchLab *researchLab
RoboticsFactory *roboticsFactory
SeabedDeuteriumDen *seabedDeuteriumDen
ShieldedMetalDen *shieldedMetalDen
Shipyard *shipyard
SolarPlant *solarPlant
SpaceDock *spaceDock
Terraformer *terraformer
UndergroundCrystalDen *undergroundCrystalDen
SolarSatellite *solarSatellite
AntiBallisticMissiles *antiBallisticMissiles
GaussCannon *gaussCannon
HeavyLaser *heavyLaser
InterplanetaryMissiles *interplanetaryMissiles
IonCannon *ionCannon
LargeShieldDome *largeShieldDome
LightLaser *lightLaser
PlasmaTurret *plasmaTurret
RocketLauncher *rocketLauncher
SmallShieldDome *smallShieldDome
Battlecruiser *battlecruiser
Battleship *battleship
Bomber *bomber
ColonyShip *colonyShip
Cruiser *cruiser
Deathstar *deathstar
Destroyer *destroyer
EspionageProbe *espionageProbe
HeavyFighter *heavyFighter
LargeCargo *largeCargo
LightFighter *lightFighter
Recycler *recycler
SmallCargo *smallCargo
ArmourTechnology *armourTechnology
Astrophysics *astrophysics
CombustionDrive *combustionDrive
ComputerTechnology *computerTechnology
EnergyTechnology *energyTechnology
EspionageTechnology *espionageTechnology
GravitonTechnology *gravitonTechnology
HyperspaceDrive *hyperspaceDrive
HyperspaceTechnology *hyperspaceTechnology
ImpulseDrive *impulseDrive
IntergalacticResearchNetwork *intergalacticResearchNetwork
IonTechnology *ionTechnology
LaserTechnology *laserTechnology
PlasmaTechnology *plasmaTechnology
ShieldingTechnology *shieldingTechnology
WeaponsTechnology *weaponsTechnology
}

var Objs = ObjsStruct{
AllianceDepot: AllianceDepot,
CrystalMine: CrystalMine,
CrystalStorage: CrystalStorage,
DeuteriumSynthesizer: DeuteriumSynthesizer,
DeuteriumTank: DeuteriumTank,
FusionReactor: FusionReactor,
MetalMine: MetalMine,
MetalStorage: MetalStorage,
MissileSilo: MissileSilo,
NaniteFactory: NaniteFactory,
ResearchLab: ResearchLab,
RoboticsFactory: RoboticsFactory,
SeabedDeuteriumDen: SeabedDeuteriumDen,
ShieldedMetalDen: ShieldedMetalDen,
Shipyard: Shipyard,
SolarPlant: SolarPlant,
SpaceDock: SpaceDock,
Terraformer: Terraformer,
UndergroundCrystalDen: UndergroundCrystalDen,
SolarSatellite: SolarSatellite,
AntiBallisticMissiles: AntiBallisticMissiles,
GaussCannon: GaussCannon,
HeavyLaser: HeavyLaser,
InterplanetaryMissiles: InterplanetaryMissiles,
IonCannon: IonCannon,
LargeShieldDome: LargeShieldDome,
LightLaser: LightLaser,
PlasmaTurret: PlasmaTurret,
RocketLauncher: RocketLauncher,
SmallShieldDome: SmallShieldDome,
Battlecruiser: Battlecruiser,
Battleship: Battleship,
Bomber: Bomber,
ColonyShip: ColonyShip,
Cruiser: Cruiser,
Deathstar: Deathstar,
Destroyer: Destroyer,
EspionageProbe: EspionageProbe,
HeavyFighter: HeavyFighter,
LargeCargo: LargeCargo,
LightFighter: LightFighter,
Recycler: Recycler,
SmallCargo: SmallCargo,
ArmourTechnology: ArmourTechnology,
Astrophysics: Astrophysics,
CombustionDrive: CombustionDrive,
ComputerTechnology: ComputerTechnology,
EnergyTechnology: EnergyTechnology,
EspionageTechnology: EspionageTechnology,
GravitonTechnology: GravitonTechnology,
HyperspaceDrive: HyperspaceDrive,
HyperspaceTechnology: HyperspaceTechnology,
ImpulseDrive: ImpulseDrive,
IntergalacticResearchNetwork: IntergalacticResearchNetwork,
IonTechnology: IonTechnology,
LaserTechnology: LaserTechnology,
PlasmaTechnology: PlasmaTechnology,
ShieldingTechnology: ShieldingTechnology,
WeaponsTechnology: WeaponsTechnology,
}

// Defenses ...
var Defenses = []Defense{
AntiBallisticMissiles,
Expand Down

0 comments on commit 1f34be2

Please sign in to comment.