For mines; those buildings are only buildable upon other buildings
(clay pit on clay deposit, e.g.) For now, mines can only be built on a
single type of deposit. This is specified in object files, and saved in
cls.buildable_on_deposit in the buildingclass.
|
|
|
_check_rotation(cls,
session,
position,
rotation)
The rotation should be the same as the one of the underlying mountain |
source code
|
|
|
check_build_line(cls,
session,
point1,
point2,
rotation=45,
ship=None)
Checks out a line on the map for build possibilities. |
source code
|
|
|
|
|
_check_settlement(cls,
session,
position,
ship=None,
issuer=None)
Check that there is a settlement that belongs to the player. |
source code
|
|
|
|
|
check_build(cls,
session,
point,
rotation=45,
check_settlement=True,
ship=None,
issuer=None)
Check if a building is buildable here. |
source code
|
|
|
check_build_fuzzy(cls,
session,
point,
*args,
**kwargs)
Same as check_build, but consider point to be a vague suggestions and
search nearby area for buildable position. |
source code
|
|
|
|