BWAPI
|
00001 #pragma once 00002 #include "ShapeType.h" 00003 00004 namespace BWAPIC 00005 { 00006 struct Shape 00007 { 00008 Shape() 00009 { 00010 type = ShapeType::None; 00011 } 00012 Shape(ShapeType::Enum _shapeType, int _ctype, int _x1, int _y1, int _x2, int _y2, int _extra1, int _extra2, int _color, bool _isSolid) 00013 { 00014 type = _shapeType; 00015 ctype = _ctype; 00016 x1 = _x1; 00017 y1 = _y1; 00018 x2 = _x2; 00019 y2 = _y2; 00020 extra1 = _extra1; 00021 extra2 = _extra2; 00022 color = _color; 00023 isSolid = _isSolid; 00024 } 00025 ShapeType::Enum type; 00026 int ctype; 00027 int x1; 00028 int y1; 00029 int x2; 00030 int y2; 00031 int extra1; 00032 int extra2; 00033 int color; 00034 bool isSolid; 00035 }; 00036 }