Main Page   Class Hierarchy   Data Structures   File List   Data Fields   Globals   Related Pages  

CVisibleWeaponInfo Class Reference

Public interface for weapons. More...

#include <weaponinfo.h>

Inheritance diagram for CVisibleWeaponInfo:

CGameObj CWeaponInfo

Public Member Functions

 CVisibleWeaponInfo ()
 Default constructor.

 CVisibleWeaponInfo (const CVisibleWeaponInfo *aWeapon, float aXPos, float aYPos)
 Copy constructor This will only be called with data of type, and will change coordinates from absolute to relative, thus needing current location of the bot.

virtual ~CVisibleWeaponInfo ()
 Destructor.

int weaponType ()
 Getter for the weapon type.


Detailed Description

Public interface for weapons.

When bots see a weapon, this is the info they get of it


Constructor & Destructor Documentation

CVisibleWeaponInfo::CVisibleWeaponInfo const CVisibleWeaponInfo *    aWeapon,
float    aXPos,
float    aYPos
 

Copy constructor This will only be called with data of type, and will change coordinates from absolute to relative, thus needing current location of the bot.

Parameters:
aWeapon The private info of the weapon.
aXPos Current X coordinate of the bot.
aYPos Current Y coordinate of the bot.


Member Function Documentation

int CVisibleWeaponInfo::weaponType  
 

Getter for the weapon type.

Returns:
Type of weapon.


The documentation for this class was generated from the following file:
Generated on Mon Jun 9 22:02:26 2003 for Drunken Bot III by doxygen1.3-rc3