Ticket #16 (closed task: fixed)
Create ComposedObject class
| Reported by: | ged | Owned by: | ged |
|---|---|---|---|
| Priority: | normal | Milestone: | ActualityEpic |
| Component: | GameWorld | Version: | 1.0 |
| Severity: | normal | Keywords: | composed object constituent statistic |
| Cc: |
Description
Create the ComposedObject class, derived from Entity. Should contain:
- an inner 'Constituent' mixin that expresses the API ComposedObject requires of the objects that compose it
- The module should hook ::included and add a ::def_statistic generator for expressing the statistic of the constituent
- Should provide an initializer that sets the object's @statistic ivar, fetching it from the incoming arghash if it exists there.
- a generator for setting up the constituents in derived classes (::def_constituents).
