Skip to content

Gizzzzmo/advptstarcraft

Repository files navigation

advptstarcraft

game_state:

  • minerals (in Hundertstel) : int
  • gas (in Hundertstel) : int
  • worker_mining_minerals : int
  • worker_mining_gas : int
  • entities_done : hashmap<int, collection> (vector/list/heap?)
  • max_supply : int
  • productions/ entities_in_production : collection<Triple(Entity, Entity, int)> (producee, producer, time_alive, bzw. neue Klasse für die Entries anstatt Tripel)

Entity:

static: (bzw ich glaub static vererbung funktioniert so nicht, stattdessen vielleicht konstante virtual Funktionen, oder die dinger alle zu template argumenten machen?)

  • minerals (in Hundertstel?) : int
  • gas (in Hundertstel?) : int
  • supply : int
  • supply_provided : int
  • class_id : int
  • productionTime : int
  • producer_destiny : enum(consumed_at_start/consumed_at_end/occupied/freed)
  • producer : int (id des producer)
  • requirements : collection (disjunktive liste der ids der Entities die erlauben die entsprechende Entity zu bauen)

non-static:

  • occupied : int (semaphore, 0 entspricht occupied, n>0 entrspricht n slots zur verarbeitung verfügbar)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages