![]() |
Tactics: Western Philosophers Vs. Musicians
0.12
A turn-based tactical game combining rules and gameplay elements inspired by Final Fantasy Tactics and the Mayfair Exponential Game System. Unlike most games of this type, motion is in full, grid-less 3D.
|
#include <CPathUpdater.h>
Classes | |
| struct | PathInfo |
Public Member Functions | |
| PathUpdater () | |
| virtual | ~PathUpdater () |
| virtual bool | update (float dt_) |
| void | setPath (Object *obj_, const Math::Path *path_, const float &speed_, Math::Interpolator::TYPE interpolatorType_=Math::Interpolator::END, float interpolatorValue_=0.0f, bool lookAtEnd_=false, float lookPercentAhead_=0.0f, bool usePercentOfPoints_=false) |
| const Math::Interpolator & | getInterpolator (Object *obj_) |
| const Math::Point & | getInitialDriverPos (Object *obj_) |
| bool | isPathAtEnd (Object *obj_) |
CollisionListener interface. | |
| virtual void | setNonCollidingData (Object *obj_) |
| virtual void | handleNonCollidingTransformApplied (Object *obj_) |
Public Member Functions inherited from OpenSkyNet::Core::MotionUpdater | |
| MotionUpdater (Updater::UPDATER_TYPE type_, const char *typeName_, Updater::UPDATER_PRIORITY prio_, float interval_) | |
| virtual void | addAnchor (Object *base_, Object *anchor_, bool updatePos_, bool updateRot_, const Math::Point<> &localPos_, const Math::Matrix3x3 &localRot_) |
| virtual void | addAnchor (Object *base_, Object *anchor_, bool updatePos_, bool updateRot_) |
| virtual void | removeAnchor (Object *base_, Object *anchor_) |
| virtual void | removeAllAnchors (Object *base_) |
Public Member Functions inherited from OpenSkyNet::Core::Updater | |
| Updater () | |
| Updater (UPDATER_TYPE type_, const char *typeName_, UPDATER_PRIORITY prio_, float interval_) | |
| virtual | ~Updater () |
| UPDATER_TYPE | getType () const |
| const std::string & | getTypeName () const |
| float | getInterval () const |
| void | setInterval (float interval_) |
| Utils::uint | getNumObjects () const |
| Utils::uint | getNumObjectsThatCanUpdate () const |
| bool | find (Object *obj_) const |
| UPDATER_PRIORITY | getPriority () const |
| OBJECT_PRIORITY | getPriority (Object *obj_) const |
| virtual bool | setPriority (Object *obj_, OBJECT_PRIORITY prio_) |
Public Member Functions inherited from OpenSkyNet::Core::CollisionListener | |
| virtual bool | handleCollisions (Object *collidee_, std::vector< CD::HitInfo > &collisions_, float &dt_) |
| virtual void | handleNewCollisions (Object *collidee_, std::vector< Object * > &colliders_) |
| virtual void | handleDeletedCollisions (Object *collidee_, std::vector< Object * > &colliders_) |
| virtual bool | handleWrongSidedness (Object *collidee_, std::vector< CD::HitInfo > &collisions_) |
| virtual bool | handleOutOfGrid (Object *obj_) |
Protected Member Functions | |
| virtual bool | addObject (Object *obj_, Updater::OBJECT_PRIORITY prio_=Updater::OBJ_1, bool isOneShot_=false) |
Protected Member Functions inherited from OpenSkyNet::Core::MotionUpdater | |
| virtual bool | removeObject (Object *obj_) |
| virtual void | removeAllObjects () |
| virtual void | updateAnchors (Object *obj_) |
Protected Member Functions inherited from OpenSkyNet::Core::Updater | |
| int | getNumToUpdate (float dt_) |
| void | allObjectsUpdated () |
| void | setPriority (UPDATER_PRIORITY prio_) |
Updates an object's motion along a path.
|
inline |
|
inlinevirtual |
|
protectedvirtual |
Returns false if obj_ is already in this updater.
Implements OpenSkyNet::Core::MotionUpdater.
|
inline |
|
inline |
Called by Core::CollisionDetector update() after the object is set to its "safe" transform.
Reimplemented from OpenSkyNet::Core::CollisionListener.
| bool PathUpdater::isPathAtEnd | ( | Object * | obj_ | ) |
Saves the motion info for obj_ when it is known not to cause collisions w/ other objects. This data is used in iterative collision detection routines whereby only one object can be tested for a new position/rotation at a time; the rest of the objects have to be at "safe" positions/rotations.
Reimplemented from OpenSkyNet::Core::CollisionListener.
| void PathUpdater::setPath | ( | Object * | obj_, |
| const Math::Path * | path_, | ||
| const float & | speed_, | ||
| Math::Interpolator::TYPE | interpolatorType_ = Math::Interpolator::END, |
||
| float | interpolatorValue_ = 0.0f, |
||
| bool | lookAtEnd_ = false, |
||
| float | lookPercentAhead_ = 0.0f, |
||
| bool | usePercentOfPoints_ = false |
||
| ) |
|
virtual |
Returns true if all objects were updated over the current interval (that's interval, not dt_), false if objects are left to be updated (see class description).
| dt_ | = seconds to update an object this call. dt_ accumulates for objects not updated. |
Reimplemented from OpenSkyNet::Core::Updater.
1.8.6