Struct conway::BigBang
[−]
[src]
pub struct BigBang { /* fields omitted */ }
Builder paradigm to create universes
Methods
impl BigBang
[src]
fn new() -> BigBang
[src]
fn width(self, new_width: usize) -> BigBang
[src]
Update the total number of columns for this Universe
fn height(self, new_height: usize) -> BigBang
[src]
Update the total number of rows for this Universe
fn server_mode(self, is_server: bool) -> BigBang
[src]
Determines whether we are running a Server or a Client True - Server False - Client
fn history(self, history_depth: usize) -> BigBang
[src]
This records the number of generates that will be buffered
fn add_player(self, new_player: PlayerBuilder) -> BigBang
[src]
This will add a single player to the list of players Each player is responsible for providing their details through the PlayerBuilder
fn add_players(self, new_player_list: Vec<PlayerBuilder>) -> BigBang
[src]
fn fog_radius(self, new_radius: usize) -> BigBang
[src]
Updates the fog to a new visibility radius. This is used to grant players visibility into the fog when they are competing against other players and they create cells outside of their own writiable regions.
fn birth(&self) -> Result<Universe, &'static str>
[src]
"Gives life to the universe and the first moment of time." Creates a Universe which can then CGoL process generations