ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-2.0/test/brains/StuntDouble.cpp
(Generate patch)

Comparing trunk/OOPSE-2.0/test/brains/StuntDouble.cpp (file contents):
Revision 1690 by tim, Sat Oct 23 23:09:46 2004 UTC vs.
Revision 1691 by tim, Mon Nov 1 19:57:07 2004 UTC

# Line 34 | Line 34 | StuntDouble::StuntDouble() :
34  
35   namespace oopse {
36  
37 < StuntDouble::StuntDouble() :
37 > StuntDouble::StuntDouble(ObjectType objType, DataStoragePointer storage) :
38 >    objType_(objType), storage_(storage),    
39      linear_(false), linearAxis_(-1), globalIndex_(-1), localIndex_(-1), snapshotMan_(NULL){
40   }
41  
# Line 42 | Line 43 | void StuntDouble::addProperty(GenericData* genData) {
43  
44   }
45  
46 + void StuntDouble::zeroForces() {
47 +    setFrc(V3Zero);
48 + }
49   void StuntDouble::addProperty(GenericData* genData) {
50 <    properties.addProperty(genData);  
50 >    properties_.addProperty(genData);  
51   }
52  
53   void StuntDouble::removeProperty(std::string& propName) {
54 <    properties.removeProperty();  
54 >    properties_.removeProperty(propName);  
55   }
56  
57   void StuntDouble::clearProperties() {
58 <    properties.clearProperties();
58 >    properties_.clearProperties();
59   }
60  
61   std::vector<std::string> StuntDouble::getPropertyNames() {
62 <    return properties.getPropertyNames();  
62 >    return properties_.getPropertyNames();  
63   }
64        
65   std::vector<GenericData*> StuntDouble::getProperties() {
66 <    return properties.getProperties();
66 >    return properties_.getProperties();
67   }
68  
69 < GenericData* StuntDouble::getPropertyByName(std:string& propName) {
70 <    return properties.getPropertyByName(propName);
69 > GenericData* StuntDouble::getPropertyByName(std::string& propName) {
70 >    return properties_.getPropertyByName(propName);
71   }
72  
73  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines