Skip to content

Commit

Permalink
#206 Started to create moves.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich2 committed Feb 25, 2023
1 parent bde9c5d commit 6b8cca3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Dev/srcGrand/dless/DLessGui.scala
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ case class DLessGui(canv: CanvasPlatform, scenIn: DLessScen, viewIn: HGView, isF
val corners = scen.corners
def armies: HCenOptLayer[Army] = scen.armies

def NoMoves: HCenStepPairArr[Army] = HCenStepPairArr[Army]()
var moves: HCenStepPairArr[Army] = NoMoves

focus = gridSys.cenVec
cPScale = gridSys.fullDisplayScale(mainWidth, mainHeight)
implicit val proj: HSysProjection = ife(isFlat, HSysProjectionFlat(gridSys, mainPanel), gridSys.projection(mainPanel))
Expand Down Expand Up @@ -80,8 +83,8 @@ case class DLessGui(canv: CanvasPlatform, scenIn: DLessScen, viewIn: HGView, isF
}

/*case (RightButton, AnyArrHead(HPlayer(hc1, pl)), hits) => hits.findHCenForEach { hc2 =>
val newM: Option[HDirn] = gridSys.findStep(hc1, hc2)
newM.foreach { d => moves2 = moves2.replaceA1byA2OrAppend(pl, hc1.andStep(d)) }
val newM: Option[HStep] = gridSys.findStep(hc1, hc2)
newM.foreach { d => moves = moves.replaceA1byA2OrAppend(pl, hc1.andStep(d)) }
repaint()
}*/

Expand Down

0 comments on commit 6b8cca3

Please sign in to comment.