24 |
|
quotes above are from Spaceballs...) |
25 |
|
|
26 |
|
*/ |
27 |
+ |
|
28 |
+ |
StuntDouble::~StuntDouble(){ |
29 |
+ |
map<string, GenericData*>::iterator iter; |
30 |
+ |
|
31 |
+ |
for(iter = properties.begin(); iter != properties.end(); ++iter ){ |
32 |
+ |
delete iter->second; |
33 |
+ |
properties.erase(iter); |
34 |
+ |
} |
35 |
+ |
|
36 |
+ |
} |
37 |
|
|
38 |
|
int StuntDouble::getObjType(){ |
39 |
|
return objType; |
138 |
|
} |
139 |
|
|
140 |
|
void StuntDouble::setVel(double vel[3]){ |
141 |
+ |
|
142 |
|
switch (objType) |
143 |
|
{ |
144 |
|
case OT_ATOM : |
633 |
|
|
634 |
|
result = properties.find(propName); |
635 |
|
|
636 |
< |
if(result != properties.end()) |
636 |
> |
if(result != properties.end()){ |
637 |
> |
delete result->second; |
638 |
|
properties.erase(result); |
639 |
+ |
|
640 |
+ |
} |
641 |
|
|
642 |
|
} |
643 |
|
GenericData* StuntDouble::getProperty(const string& propName){ |