Commit 25407c23

add an ObjectType class that makes object creation more abstract

This adds the concept of ObjectTypes. This means when adding (“creating”) a new object, one simply has to pass the type id, as well as instance specific data such as position and angle.

Furthermore, this adds quite a bit of temporary code that loads these object types. This is hardcoded for now and will be replaced by JSON object definition files later.

Commit d5b82ea9

– better (not perfect) hashing technique for selection indicator states
– rudimentary static object movment
– implement the first criteria of object placement (within the world coordintes), show a visual indication if it fails
(sic)

Coming back to more feature oriented work, we finally bring the pieces together and the passive selection is now used to move objects in shop mode.
The only constraint for placing an object for now is however the actual size of the logical world, so you can happily move objects on top of other objects or through walls.
Be that as it may, check out what it looks like!