- avoid
- build archers and knights
This commit is contained in:
weiss
2020-04-10 05:24:09 +02:00
parent 80038b3883
commit 3e8a95a6b1
6 changed files with 129 additions and 834 deletions

View File

@@ -10,7 +10,7 @@ type GameInitInput =
type GameInput =
{ gold :: Int
, touchedSite :: Int -- -1 if none
, sites :: Array Site
, sites :: Array ProtoSite
, units :: Array Minion
}
@@ -21,7 +21,7 @@ type SiteInfo =
, radius :: Int
}
type Site =
type ProtoSite =
{ id :: Int
, structureType :: Int -- -1 No structure, 2 Barracks
, owner :: Int -- -1 No structure, 0 friendly, 1 enemy
@@ -29,6 +29,17 @@ type Site =
, param2 :: Int -- -1 No structure, barracks: 0 knight 1 archer
}
type Site =
{ id :: Int
, x :: Int
, y :: Int
, radius :: Int
, structureType :: Int
, owner :: Int
, param1 :: Int
, param2 :: Int
}
type Minion =
{ x :: Int
, y :: Int