PutkaRTS icon indicating copy to clipboard operation
PutkaRTS copied to clipboard

Task: Objects, object types, object actions and tech tree

Open Metabolix opened this issue 14 years ago • 0 comments

Simple. Design the classes ObjectType, ObjectAction and Object. All types and actions should be dynamically loadable from data files. The only and sole exception is movement, which requires special algorithms anyway.

ObjectType class may represent practically anything:

  • Unit
  • Building
  • Resource (tree or something)
  • Static object (stones or something), if they are not made from tiles

Object actions include:

  • Harvesting resources
  • Attacks (this may be merged below)
  • Producing other objects, such as:
    • Units from buildings
    • Grenades and the like, they can be objects as well
  • Changing technology tree, that is, changing other object actions
    • Researching new technologies like new unit types to produce
    • Upgrading weapons to better ones
      • A single upgrade may affect multiple object types, like better armour for all tanks

Metabolix avatar Feb 11 '11 17:02 Metabolix