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.

Leave a Reply

Your email address will not be published. Required fields are marked *