BWAPI
trunk/bwapi/include/BWAPI/Client/Shape.h
Go to the documentation of this file.
00001 #pragma once
00002 #include "ShapeType.h"
00003 
00004 namespace BWAPIC
00005 {
00006   struct Shape
00007   {
00008     Shape()
00009     :type(ShapeType::None)
00010     ,ctype(0)
00011     ,x1(0)
00012     ,y1(0)
00013     ,x2(0)
00014     ,y2(0)
00015     ,extra1(0)
00016     ,extra2(0)
00017     ,color(0)
00018     ,isSolid(false)
00019     {
00020     }
00021 
00022     Shape(ShapeType::Enum _shapeType, int _ctype, int _x1, int _y1, int _x2, int _y2, int _extra1, int _extra2, int _color, bool _isSolid)
00023     :type(_shapeType)
00024     ,ctype(_ctype)
00025     ,x1(_x1)
00026     ,y1(_y1)
00027     ,x2(_x2)
00028     ,y2(_y2)
00029     ,extra1(_extra1)
00030     ,extra2(_extra2)
00031     ,color(_color)
00032     ,isSolid(_isSolid)
00033     {
00034     }
00035 
00036     ShapeType::Enum type;
00037     int ctype;
00038     int x1;
00039     int y1;
00040     int x2;
00041     int y2;
00042     int extra1;
00043     int extra2;
00044     int color;
00045     bool isSolid;
00046   };
00047 }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines