CSWWeaponSupply Class Reference

Inheritance diagram for CSWWeaponSupply:

Inheritance graph
[legend]
List of all members.

Public Types

enum  WeaponResource {
  GREEN_TORPEDO_ID = 1, RED_TORPEDO_ID = 2, BLUE_TORPEDO_ID = 4,
  GREEN_MINE_ID = 1024, YELLOW_MINE_ID = 2048
}

Detailed Description

This class represents a resource provider for weapons. Rechargeable objects can request recharging of specific weapons to this object. The instance of this class broadcasts text messages periodicaly every 5 seconds. These messages contain the name, the position, the radius within objects must be for recharging and the bitwise ORed provided resource ids.
The message format is: "<WeaponSupplyName> position: <x> <y> <z> radius: <r> resources: <i>"


Member Enumeration Documentation

enum CSWWeaponSupply::WeaponResource

The resource of weapons.

Enumerator:
GREEN_TORPEDO_ID  The resource id identifying green (ordinary) torpedos.
RED_TORPEDO_ID  The resource id identifying red (active sonar guided) torpedos.
BLUE_TORPEDO_ID  The resource id identifying blue (passive sonar guided) torpedos.
GREEN_MINE_ID  The resource id identifying green (ordinary) mines.
YELLOW_MINE_ID  The resource id identifying yellow (magnetic) mines.


Generated at 2 Jan 2007 for project CodeSubWars. www.codesubwars.org