BWAPI
Skynet/Skynet/BufferedTriangle.h
Go to the documentation of this file.
00001 #pragma once
00002 
00003 #include "Interface.h"
00004 
00005 #include "BufferedItem.h"
00006 
00007 class BufferedTriangle : public BufferedItem
00008 {
00009 public:
00010         BufferedTriangle(BWAPI::CoordinateType::Enum coordType, BufferedCategory id, int time, int x1, int y1, int x2, int y2, int x3, int y3, BWAPI::Color color, bool solid)
00011                 : BufferedItem(coordType, id, time)
00012                 , mX1(x1)
00013                 , mY1(y1)
00014                 , mX2(x2)
00015                 , mY2(y2)
00016                 , mX3(x3)
00017                 , mY3(y3)
00018                 , mColor(color)
00019                 , mIsSolid(solid)
00020         {}
00021 
00022         virtual void draw()
00023         {
00024                 BWAPI::Broodwar->drawTriangle(mCoordType, mX1, mY1, mX2, mY3, mX2, mY3, mColor, mIsSolid);
00025         }
00026 
00027 private:
00028         int mX1;
00029         int mY1;
00030         int mX2;
00031         int mY2;
00032         int mX3;
00033         int mY3;
00034         BWAPI::Color mColor;
00035         bool mIsSolid;
00036 };
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines