BWAPI
|
00001 #pragma once 00002 00003 #include "Interface.h" 00004 00005 #include "BufferedItem.h" 00006 00007 class BufferedCircle : public BufferedItem 00008 { 00009 public: 00010 BufferedCircle(BWAPI::CoordinateType::Enum coordType, BufferedCategory id, int time, int x, int y, int radius, BWAPI::Color color, bool solid) 00011 : BufferedItem(coordType, id, time) 00012 , mX(x) 00013 , mY(y) 00014 , mRadius(radius) 00015 , mColor(color) 00016 , mIsSolid(solid) 00017 {} 00018 00019 virtual void draw() 00020 { 00021 BWAPI::Broodwar->drawCircle(mCoordType, mX, mY, mRadius, mColor, mIsSolid); 00022 } 00023 00024 private: 00025 int mX; 00026 int mY; 00027 int mRadius; 00028 BWAPI::Color mColor; 00029 bool mIsSolid; 00030 };