doc | ||
src/genbuildings | ||
test/genbuildings | ||
CHANGELOG.md | ||
LICENSE | ||
project.clj | ||
README.md |
genbuildings
A Clojure library designed to generate genetic buildings within the context of The Great Game framework, implementing and developing ideas described in Modelling rural to urban, take two.
Usage
Broadly, for a type of building, a build function will be a function which takes as arguments
- A
vertex
, being a two dimensional point where each dimension is an integer in the range 0...1x10^9, considered as a number of millimetres; - A
heading
, being a real number in the range 0...360 (or possibly we may use radians, if that turns out to be simpler; - A
world
, being a data structure as described in the-great-game.world.world; - A
culture
, being a keyword identifying a culture within that world; - A
holder
, being a data structure as described in the-great-game.agent.agent; units
, being an integer in the range 1...100 (but for normal buildings more typically 1...10) defining the number of building units (roughly, rooms) in the building.
and returning a renderable model of a building, such that in a large game world identical building models will be generated rarely.
Copyright and Licence
Copyright © 2020 Simon Brooke; licenced under the GNU General Public Licence, either version 2 or, at your option, any later version.