BWAPI
Skynet/Skynet/AOEThreat.h
Go to the documentation of this file.
00001 #pragma once
00002 
00003 #include "Interface.h"
00004 
00005 class AOEThreatClass
00006 {
00007 public:
00008         AOEThreatClass(Unit unit);
00009         AOEThreatClass(BWAPI::Bullet* bullet);
00010 
00011         bool hasGone() const;
00012 
00013         Position getPosition() const;
00014         int getRadius() const;
00015         Unit getTarget() const;
00016 
00017         bool isAirThreat() const;
00018         bool isGroundThreat() const;
00019         bool isEnergyThreat() const;
00020 
00021         void draw() const;
00022 
00023 private:
00024         Unit mUnit;
00025         BWAPI::Bullet* mBullet;
00026 };
00027 typedef std::tr1::shared_ptr<AOEThreatClass> AOEThreat;
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines