BWAPI
|
00001 #pragma once 00002 00003 #include "Interface.h" 00004 00005 #include "BufferedItem.h" 00006 00007 class BufferedText : public BufferedItem 00008 { 00009 public: 00010 BufferedText(BWAPI::CoordinateType::Enum coordType, BufferedCategory id, int time, int x, int y, std::string text) 00011 : BufferedItem(coordType, id, time) 00012 , mX(x) 00013 , mY(y) 00014 , mText(text) 00015 {} 00016 00017 virtual void draw() 00018 { 00019 BWAPI::Broodwar->drawText(mCoordType, mX, mY, mText.c_str()); 00020 } 00021 00022 private: 00023 int mX; 00024 int mY; 00025 std::string mText; 00026 };