CodeSubWars 0.4.7b
CodeSubWars::CSWWeaponSupply Class Reference

#include <CSWWeaponSupply.h>

Inheritance diagram for CodeSubWars::CSWWeaponSupply:

Public Types

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

Additional Inherited Members

- Public Member Functions inherited from CodeSubWars::CSWObject
const std::string & getName () const
 

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

◆ 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 Sun Aug 7 2022 for project CodeSubWars. www.codesubwars.org