BWAPI
|
00001 #pragma once 00002 00003 #include "Interface.h" 00004 00005 #include "BufferedItem.h" 00006 00007 class BufferedBox : public BufferedItem 00008 { 00009 public: 00010 BufferedBox(BWAPI::CoordinateType::Enum coordType, BufferedCategory id, int time, int left, int top, int right, int bottom, BWAPI::Color color, bool solid) 00011 : BufferedItem(coordType, id, time) 00012 , mLeft(left) 00013 , mTop(top) 00014 , nRight(right) 00015 , mBottom(bottom) 00016 , mColor(color) 00017 , mIsSolid(solid) 00018 {} 00019 00020 virtual void draw() 00021 { 00022 BWAPI::Broodwar->drawBox(mCoordType, mLeft, mTop, nRight, mBottom, mColor, mIsSolid); 00023 } 00024 00025 private: 00026 int mLeft; 00027 int mTop; 00028 int nRight; 00029 int mBottom; 00030 BWAPI::Color mColor; 00031 bool mIsSolid; 00032 };