BWAPI
Skynet/Skynet/BufferedEllipse.h
Go to the documentation of this file.
00001 #pragma once
00002 
00003 #include "Interface.h"
00004 
00005 #include "BufferedItem.h"
00006 
00007 class BufferedEllipse : public BufferedItem
00008 {
00009 public:
00010         BufferedEllipse(BWAPI::CoordinateType::Enum coordType, BufferedCategory id, int time, int x, int y, int radiusX, int radiusY, BWAPI::Color color, bool solid)
00011                 : BufferedItem(coordType, id, time)
00012                 , mX(x)
00013                 , mY(y)
00014                 , mRadiusX(radiusX)
00015                 , mRadiusY(radiusY)
00016                 , mColor(color)
00017                 , mIsSolid(solid)
00018         {}
00019 
00020         virtual void draw()
00021         {
00022                 BWAPI::Broodwar->drawEllipse(mCoordType, mX, mY, mRadiusX, mRadiusY, mColor, mIsSolid);
00023         }
00024 
00025 private:
00026         int mX;
00027         int mY;
00028         int mRadiusX;
00029         int mRadiusY;
00030         BWAPI::Color mColor;
00031         bool mIsSolid;
00032 };
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines