using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace BattleForAllenCreek { class HexpartLos { int _indexFromOrigin, _indexFromTarget; Hexpart _hexpart; public HexpartLos() { this._hexpart = new Hexpart(); this._hexpart.setHexpartXY(0, 0); this._indexFromOrigin = 0; this._indexFromTarget = 0; } public HexpartLos(int hexpartX, int hexpartY, int indexFromOrigin, int indexFromTarget, string color) { this._hexpart = new Hexpart(hexpartX, hexpartY); this._indexFromOrigin = indexFromOrigin; this._indexFromTarget = indexFromTarget; } public int getHexsideX() { return this._hexpart.getHexpartX(); } public int getHexsideY() { return this._hexpart.getHexpartY(); } public void setHexsideXY(int hexpartX, int hexpartY) { this._hexpart.setHexpartXY( hexpartX, hexpartY); } public string getName() { return this._hexpart.getHexpartName(); } public int getIndexFromOrigin() { return this._indexFromOrigin; } public int getIndexFromTarget() { return this._indexFromTarget; } public int getHexpartType() { return this._hexpart.getHexpartType(); } public string getHexpartTypeName() { return this._hexpart.getHexpartTypeName(); } } }