Thrive
Public Member Functions | Static Public Member Functions | List of all members
thrive::Touchable Class Reference

Helper class for keeping track of changing data. More...

#include <touchable.h>

Inheritance diagram for thrive::Touchable:
thrive::OgreCameraComponent::Properties thrive::OgreLightComponent::Properties thrive::OgreSceneNodeComponent::Transform thrive::OgreViewportComponent::Properties thrive::OgreWorkspaceComponent::Properties thrive::RigidBodyComponent::DynamicProperties thrive::RigidBodyComponent::Properties thrive::SkyPlaneComponent::Properties thrive::Sound::Properties thrive::TextOverlayComponent::Properties thrive::TouchableValue< T > thrive::TouchableValue< bool > thrive::TouchableValue< EntityId > thrive::TouchableValue< float > thrive::TouchableValue< Ogre::String > thrive::TouchableValue< std::string > thrive::TouchableValue< std::vector< Ogre::MovableObject * > >

Public Member Functions

bool hasChanges () const
 Whether this Touchable has unapplied changes.
 
void touch ()
 Marks the Touchable as changed.
 
void untouch ()
 Marks all changes as applied.
 

Static Public Member Functions

static luabind::scope luaBindings ()
 Lua bindings. More...
 

Detailed Description

Helper class for keeping track of changing data.

Properties of components should be derived from Touchable so that the system that handles the component can quickly check for any changes.

Note
A Touchable starts out with Touchable::hasChanges() == true

Member Function Documentation

luabind::scope Touchable::luaBindings ( )
static

The documentation for this class was generated from the following files: