class Bullet: public GameObjTimed

This class represent a bullet fired by a ship

Inheritance:


Public Methods

[more] Bullet()
Minimal Constructor
[more] Bullet(const Point3f &_p, const float _angle)
Constructor with given position and direction
[more] Bullet(const Point3f &_p, const float _angle, const Point3f &_v)
Constructur with given position and direction and velocity
[more]int Draw()
This function draw a single bullet

Inherited from GameObjTimed:

Public Fields

oint ttl

Public Methods

ovoid Update(int t)

Inherited from GameObj:

Public Fields

oPoint3f p
oPoint3f axis
ofloat angle
oPoint3f v
ofloat av
obool active
oSphere3f B

Public Methods

oPoint3f VDir()
obool Collide(GameObj *o)
ovoid DrawBound()
obool operator < ( GameObj const & o ) const
obool operator == ( GameObj const & o ) const

Documentation

This class represent a bullet fired by a ship. Version History
  • 0.1 First Release
  • 0.4s subclassed from GameObjTimed and added strenght,
o Bullet()
Minimal Constructor

o Bullet(const Point3f &_p, const float _angle)
Constructor with given position and direction

o Bullet(const Point3f &_p, const float _angle, const Point3f &_v)
Constructur with given position and direction and velocity

oint Draw()
This function draw a single bullet. This is the simple bullet (just a short line shading from cyan to dark blue).


Direct child classes:
BulletFireBall

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.