duncan
Mom and Dad were wrong!
Public Member Functions
server::Movable Class Reference

#include <movable.h>

Inheritance diagram for server::Movable:
Inheritance graph
[legend]

List of all members.

Public Member Functions

void set_dir (net::dir_t)
void set_speed (double)
double rspeed ()
double cspeed ()
bool is_moving ()
virtual ~Movable ()

Detailed Description

Mix-in class for objects that can have velocity.

Author:
Harry Slatyer
Malcolm Gill

see LICENSE


Constructor & Destructor Documentation

Movable::~Movable ( ) [virtual]

just in case we ever want to delete a pointer to a Movable...


Member Function Documentation

double Movable::cspeed ( )

Get the horizontal (column) velocity.

Returns:
horizontal velocity
bool Movable::is_moving ( )
Returns:
true iff this Player is moving.
double Movable::rspeed ( )

Get the vertical (row) velocity.

Returns:
vertical velocity
void Movable::set_dir ( net::dir_t  d)

Set the direction.

Parameters:
ddirection
void Movable::set_speed ( double  s)

Set the speed.

Parameters:
sspeed

The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Enumerations