MCPcopy Create free account
hub / github.com/bwapi/bwapi / Attack

Class Attack

bwapi/BWAPI/Source/BW/OrderTypes.h:33–48  ·  view source on GitHub ↗

Attack Location command in bw, can target either location or target.

Source from the content-addressed store, hash-verified

31
32 // Attack Location command in bw, can target either location or target.
33 class Attack : private BWCommand<0x15>
34 {
35 public:
36 // Attack Location on position.
37 Attack(const BW::Position& target, BWAPI::Order order, bool queued = false);
38 Attack(int x, int y, BWAPI::Order order, bool queued = false);
39 // Attack Location on unit.
40 Attack(BWAPI::Unit target, BWAPI::Order order, bool queued = false);
41 // Attack Location on general target.
42 Attack(const PositionUnitTarget& target, BWAPI::Order order, bool queued = false);
43 private:
44 BW::PositionUnitTarget target;
45 u16 always0xe4 = BWAPI::UnitTypes::Enum::None;
46 u8 order;
47 u8 type;
48 };
49
50 // Right click command in bw, can target either location or target.
51 class RightClick : private BWCommand<0x14>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected