… | … | ||
---|---|---|---|
75 | hide (); | 75 | hide (); |
76 | }; | 76 | }; |
77 | }; | 77 | }; |
78 | 78 | ||
79 | struct entity_container : entity_base, protected vector<entity_base *> { | 79 | struct entity_container : entity_base, protected vector<entity_base *> { |
80 | void add (entity_base *e) { push_back (e); e->parent = this; } | ||
80 | void update_bbox (); | 81 | void update_bbox (); |
81 | void show (const sector &sec); | 82 | void show (const sector &sec); |
82 | void draw (); | 83 | void draw (); |
83 | ~entity_container (); | 84 | ~entity_container (); |
84 | }; | 85 | }; |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |