[−][src]Trait codegame::Game
Associated Types
type Options: Serialize + for<'de> Deserialize<'de> + Sync + Send + Clone + 'static
[src]
type OptionsPreset: Debug + Serialize + for<'de> Deserialize<'de> + Sync + Send + Clone + 'static + Into<Self::Options>
[src]
type PlayerOptions: PlayerOptions<Self> + Serialize + for<'de> Deserialize<'de> + Sync + Send + Clone + 'static
[src]
type Action: Serialize + for<'de> Deserialize<'de> + Trans + Sync + Send + Clone + 'static
[src]
type Event: Serialize + for<'de> Deserialize<'de> + Trans + Sync + Send + Clone + 'static
[src]
type PlayerView: Serialize + for<'de> Deserialize<'de> + Trans + Sync + Send + Clone + 'static
[src]
type Results: Serialize + for<'de> Deserialize<'de> + Sync + Send + Clone + 'static
[src]
type DebugData: Serialize + for<'de> Deserialize<'de> + Trans + Sync + Send + Clone + 'static
[src]
type DebugState: Serialize + for<'de> Deserialize<'de> + Trans + Sync + Send + Clone + 'static
[src]
Required methods
pub fn init(
rng: &mut dyn RngCore,
player_count: usize,
options: Self::Options
) -> Self
[src]
rng: &mut dyn RngCore,
player_count: usize,
options: Self::Options
) -> Self
pub fn player_view(&self, player_index: usize) -> Self::PlayerView
[src]
pub fn process_turn(
&mut self,
rng: &mut dyn RngCore,
actions: HashMap<usize, Self::Action>
) -> Vec<Self::Event>ⓘ
[src]
&mut self,
rng: &mut dyn RngCore,
actions: HashMap<usize, Self::Action>
) -> Vec<Self::Event>ⓘ