Package fr.formiko.formiko
Class MapPath
java.lang.Object
fr.formiko.formiko.MapPath
Path for map move.
- Author:
- Hydrolien
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Add path CCase by CCase.void
Add a single CCase to the path.fr.formiko.usual.structures.listes.Liste<CCase>
getList()
fr.formiko.usual.structures.listes.Liste<Integer>
static CCase
getNextCCase
(CCase from, int d) get the next CCase to go to reach last Case "to".static CCase
getNextCCase
(CCase from, CCase to) get the next CCase to go to reach last Case "to".toString()
Strandard toString function.void
-
Field Details
-
path
-
movingCaseByTurn
-
-
Constructor Details
-
MapPath
Main constructor that build the path.- Parameters:
from
- starting CCaseto
- ending CCase
-
-
Method Details
-
getList
-
getMovingCaseByTurn
-
toString
Strandard toString function. -
addPath
Add path CCase by CCase.- Parameters:
from
- starting CCaseto
- ending CCase
-
addToPath
Add a single CCase to the path.
If CCase is already the last one, it don't add it.- Parameters:
cc
- CCase to add
-
updateMovingCaseByTurn
-
getNextCCase
get the next CCase to go to reach last Case "to".- Parameters:
from
- starting CCaseto
- target CCase
-
getNextCCase
get the next CCase to go to reach last Case "to".- Parameters:
from
- starting CCased
- direction where to go
-