Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

GunInterface Class Reference

#include <obj_gun.h>

Inheritance diagram for GunInterface:

GunPeriodic GunPlayer List of all members.

Public Member Functions

 GunInterface (Object *_obj, FacingInterface *_facing, ObjectInfo *_missile_objinfo, float _speed, int _top_timer, int _dir)
virtual ~GunInterface ()
virtual void Event (int evt)
virtual void HitTile (Tile *)
virtual void HitObj (Object *)

Protected Member Functions

void ResetCountdown ()
bool Countdown (int dt)
bool Ready ()
void Fire ()

Protected Attributes

Objectobj
FacingInterfacefacing
ObjectInfomissile_objinfo
float speed
int timer
int top_timer
int dir

Constructor & Destructor Documentation

GunInterface::GunInterface Object   _obj,
FacingInterface   _facing,
ObjectInfo   _missile_objinfo,
float    _speed,
int    _top_timer,
int    _dir
[inline]
 

virtual GunInterface::~GunInterface   [inline, virtual]
 


Member Function Documentation

bool GunInterface::Countdown int    dt [protected]
 

Convenience Function

virtual void GunInterface::Event int    evt [inline, virtual]
 

Reimplemented in GunPlayer, and GunPeriodic.

void GunInterface::Fire   [protected]
 

Convenience Function

virtual void GunInterface::HitObj Object   [inline, virtual]
 

virtual void GunInterface::HitTile Tile   [inline, virtual]
 

bool GunInterface::Ready   [protected]
 

Convenience Function

void GunInterface::ResetCountdown   [protected]
 

Convenience Function


Member Data Documentation

int GunInterface::dir [protected]
 

direction covering facing

FacingInterface* GunInterface::facing [protected]
 

facing module for aiming

ObjectInfo* GunInterface::missile_objinfo [protected]
 

missile blueprints

Object* GunInterface::obj [protected]
 

object attached to

float GunInterface::speed [protected]
 

speed of missile

int GunInterface::timer [protected]
 

countdown until ready to fire again (OPTIONAL TO USE)

int GunInterface::top_timer [protected]
 

top value


The documentation for this class was generated from the following files:
Generated on Sun Mar 2 18:50:28 2003 for eounicorn by doxygen1.3-rc3