xoreos  0.0.5
Public Member Functions | Private Attributes | List of all members
Engines::KotOR::Action Class Reference

#include <action.h>

Collaboration diagram for Engines::KotOR::Action:
Collaboration graph
[legend]

Public Member Functions

 Action (ActionType type)
 
 Action (const Action &action)
 
void setPoint (float x, float y, float z)
 
void setObject (Object *o)
 
void setRange (float range)
 
ActionType getType () const
 
void getPoint (float &x, float &y, float &z) const
 
ObjectgetObject () const
 
float getRange () const
 

Private Attributes

ActionType _type
 
float _point [3]
 
Object_object
 
float _range
 

Detailed Description

Definition at line 36 of file action.h.

Constructor & Destructor Documentation

◆ Action() [1/2]

Engines::KotOR::Action::Action ( ActionType  type)

Definition at line 31 of file action.cpp.

References _point.

◆ Action() [2/2]

Engines::KotOR::Action::Action ( const Action action)

Definition at line 35 of file action.cpp.

References _object, _point, and _range.

Member Function Documentation

◆ getObject()

Object * Engines::KotOR::Action::getObject ( ) const

Definition at line 68 of file action.cpp.

References _object.

◆ getPoint()

void Engines::KotOR::Action::getPoint ( float &  x,
float &  y,
float &  z 
) const

Definition at line 62 of file action.cpp.

References _point.

Referenced by Engines::KotOR::ActionExecutor::executeMoveToPoint().

Here is the caller graph for this function:

◆ getRange()

float Engines::KotOR::Action::getRange ( ) const

Definition at line 72 of file action.cpp.

References _range.

Referenced by Engines::KotOR::ActionExecutor::executeMoveToPoint().

Here is the caller graph for this function:

◆ getType()

ActionType Engines::KotOR::Action::getType ( ) const

Definition at line 58 of file action.cpp.

References _type.

Referenced by Engines::KotOR::ActionExecutor::executeActions().

Here is the caller graph for this function:

◆ setObject()

void Engines::KotOR::Action::setObject ( Object o)

Definition at line 50 of file action.cpp.

References _object.

◆ setPoint()

void Engines::KotOR::Action::setPoint ( float  x,
float  y,
float  z 
)

Definition at line 44 of file action.cpp.

References _point.

Referenced by Engines::KotOR::Functions::actionMoveToObject().

Here is the caller graph for this function:

◆ setRange()

void Engines::KotOR::Action::setRange ( float  range)

Definition at line 54 of file action.cpp.

References _range.

Referenced by Engines::KotOR::Functions::actionMoveToObject().

Here is the caller graph for this function:

Member Data Documentation

◆ _object

Object* Engines::KotOR::Action::_object
private

Definition at line 53 of file action.h.

Referenced by Action(), getObject(), and setObject().

◆ _point

float Engines::KotOR::Action::_point[3]
private

Definition at line 52 of file action.h.

Referenced by Action(), getPoint(), and setPoint().

◆ _range

float Engines::KotOR::Action::_range
private

Definition at line 54 of file action.h.

Referenced by Action(), getRange(), and setRange().

◆ _type

ActionType Engines::KotOR::Action::_type
private

Definition at line 51 of file action.h.

Referenced by getType().


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