![]() |
VR-Forces 4.5 Class Documentation
|
DtScriptedMovementObject class is a container that describes a scripted movement file and phases for that scripted movement. More...
Public Types | |
| typedef std::vector < DtScriptedMovementPhase > | Phases |
Public Member Functions | |
| DtScriptedMovementObject () | |
| default constructor | |
| DtScriptedMovementObject (int type) | |
| default constructor | |
| virtual | ~DtScriptedMovementObject () |
| destructor | |
| DtScriptedMovementObject (const DtScriptedMovementObject &orig) | |
| copy constructor | |
| DtScriptedMovementObject & | operator= (const DtScriptedMovementObject &orig) |
| assignment operator | |
| virtual void | setName (const std::string &) |
| Sets the name of this scripted movement object. | |
| virtual const std::string & | name () const |
| virtual const DtScriptedMovementFileConfiguration & | scriptedMovementFileConfiguration () const |
| Backwards compatability only. Configuration is now set via the phases. | |
| virtual DtScriptedMovementFileConfiguration & | scriptedMovementFileConfiguration () |
| virtual void | addPhase (const DtScriptedMovementPhase &) |
| Phase manipulation. Adds a new phase. | |
| virtual void | removePhase (int) |
| Removes a phase. | |
| virtual const Phases & | phases () const |
| Returns phases. | |
| virtual DtScriptedMovementPhase & | phase (int) |
| Returns the phase at the specified position. | |
| virtual const DtScriptedMovementPhase & | phase (int) const |
| virtual void | setPhases (const Phases &) |
| Sets phases. | |
| virtual bool | setPhase (int p, const DtScriptedMovementPhase &phase) |
| Sets the phase at the given index. If the phase does not exist will return false. | |
| virtual bool | load (const DtFilename &) |
| Loads a scripted movement object file and sets the path to load all phase files from. | |
| virtual void | setLoadedPath (const DtFilename &) |
| If creating from code, set this to be the file that would be saved out if saved. | |
| virtual DtFilename | loadedPath () const |
| Returns the path this object was loaded from. | |
| virtual bool | save (const DtFilename &) |
| Saves the file to the given path. | |
| virtual bool | save () |
| Saves to the currently loaded filename. If no filename returns false. | |
| virtual bool | hasValidPhases (double simTimeDelta, const std::set< int > &phasesPerformed) |
| Returns true if there are any valid phases left to perform, given a list of the phases that have already been performed. | |
| virtual std::set< int > | availablePhases (double simTimeDelta, const std::set< int > &phasesPerformed) |
| Returns a list of phases that satisfy the current simTimeDelta mark. | |
| virtual void | setFilename (const DtFilename &) |
| Sets the name of the file to save to. | |
| virtual bool | remove () |
| Removes the file referenced by this object from disk. | |
| virtual int | scriptType () const |
| Returns the script type. | |
| virtual void | setDescription (const std::string &) |
| Description of the movement object. Will be used as a tool tip when displaying in the gui. | |
| virtual const std::string & | description () const |
| virtual void | setCategories (const std::string &) |
| Categories that this movement object belongs to. | |
| virtual void | setCategories (const std::vector< std::string > &) |
| virtual std::vector< std::string > | categories () const |
| virtual void | addCategory (const std::string &) |
| virtual void | removeCategory (const std::string &) |
| virtual const std::string & | categoriesAsString () const |
| virtual bool | hasCategory (const std::string &) const |
| virtual void | renameCategory (const std::string &oldName, const std::string &newName) |
Protected Member Functions | |
| template<class Archive > | |
| void | serialize (Archive &ar, const unsigned int version) |
| When the class Archive corresponds to an output archive, the & operator is defined similar to <<. | |
Protected Attributes | |
| int | myScriptType |
| std::string | myName |
| Phases | myPhases |
| DtFilename | myFilename |
| std::string | myCategories |
| std::string | myDescription |
| DtScriptedMovementFileConfiguration | myPreviousConfiguration |
Friends | |
| class | boost::serialization::access |
| Serialization/Deserialization //! | |
DtScriptedMovementObject class is a container that describes a scripted movement file and phases for that scripted movement.
| typedef std::vector<DtScriptedMovementPhase> DtScriptedMovementObject::Phases |
| DtScriptedMovementObject::DtScriptedMovementObject | ( | ) |
default constructor
| DtScriptedMovementObject::DtScriptedMovementObject | ( | int | type | ) |
default constructor
|
virtual |
destructor
| DtScriptedMovementObject::DtScriptedMovementObject | ( | const DtScriptedMovementObject & | orig | ) |
copy constructor
| DtScriptedMovementObject& DtScriptedMovementObject::operator= | ( | const DtScriptedMovementObject & | orig | ) |
assignment operator
|
virtual |
Sets the name of this scripted movement object.
|
virtual |
|
virtual |
Backwards compatability only. Configuration is now set via the phases.
|
virtual |
|
virtual |
Phase manipulation. Adds a new phase.
|
virtual |
Removes a phase.
|
virtual |
Returns phases.
|
virtual |
Returns the phase at the specified position.
|
virtual |
|
virtual |
Sets phases.
|
virtual |
Sets the phase at the given index. If the phase does not exist will return false.
|
virtual |
Loads a scripted movement object file and sets the path to load all phase files from.
|
virtual |
If creating from code, set this to be the file that would be saved out if saved.
If this is not set then movment file will not load
|
virtual |
Returns the path this object was loaded from.
|
virtual |
Saves the file to the given path.
Will not change the loaded path if this file was previously loaded. If there is no loaded path the path is changed to the saved path
|
virtual |
Saves to the currently loaded filename. If no filename returns false.
|
virtual |
Returns true if there are any valid phases left to perform, given a list of the phases that have already been performed.
|
virtual |
Returns a list of phases that satisfy the current simTimeDelta mark.
|
virtual |
Sets the name of the file to save to.
|
virtual |
Removes the file referenced by this object from disk.
|
virtual |
Returns the script type.
|
virtual |
Description of the movement object. Will be used as a tool tip when displaying in the gui.
|
virtual |
|
virtual |
Categories that this movement object belongs to.
These are arbitrary strings that will be displayed to the user so they can be used to filter movement objects. The categories will be a string that has the categories separated by ;. An empty category list means it belongs to all categories
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
inlineprotected |
When the class Archive corresponds to an output archive, the & operator is defined similar to <<.
Likewise, when the class Archive is a type of input archive the & operator is defined similar to >>.
References DtBallisticMissileMovementScript.
|
friend |
Serialization/Deserialization //!
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |