Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

CommandMove Class Reference

#include <command.h>

Inheritance diagram for CommandMove:

Inheritance graph
Collaboration diagram for CommandMove:

Collaboration graph
List of all members.

Public Member Functions

 CommandMove (double _duration, const Vec3d &_velocity)
void process (ExecutionEnvironment &, double t, double dt)

Private Attributes

Vec3d velocity

Constructor & Destructor Documentation

CommandMove::CommandMove double  _duration,
const Vec3d _velocity
 

Definition at line 405 of file command.cpp.

00405                                                                  :
00406     TimedCommand(_duration),
00407     velocity(_velocity)
00408 {
00409 }


Member Function Documentation

void CommandMove::process ExecutionEnvironment ,
double  t,
double  dt
[virtual]
 

Implements Command.

Definition at line 411 of file command.cpp.

References velocity.

00412 {
00413     env.getSimulation()->setObserverPosition(env.getSimulation()->getObserver().getPosition() + (velocity * dt));
00414 }


Member Data Documentation

Vec3d CommandMove::velocity [private]
 

Definition at line 342 of file command.h.

Referenced by process().


The documentation for this class was generated from the following files:
Generated on Sat Jan 14 22:33:13 2006 for Celestia by  doxygen 1.4.1