/////////////////////////////////////////////////////////// // PRIVATE FUNCTIONS /////////////////////////////////////////////////////////// private Vector2 GetRealPos(PlatePosition pos) { Vector2 vect; vect.x = ((pos.x * GAP_BETWEEN_CELLS_X) + POSITION_CELL_TOP_LEFT_X); vect.y = (POSITION_CELL_TOP_LEFT_Y - (pos.y * GAP_BETWEEN_CELLS_Y)); return(vect); }
////////////////////////////////////////////////////////////////////////////////// // Constructor ////////////////////////////////////////////////////////////////////////////////// /// public CaseObject(bool bOcc, JetonObject jeton, PlatePosition pos) { this.bOccupied = bOcc; this.theJeton = jeton; this.thePosition = pos; }