(&mut self, command_optional: Option<PlayerCommand>)
| 112 | } |
| 113 | |
| 114 | pub fn process_command_optional(&mut self, command_optional: Option<PlayerCommand>) { |
| 115 | if let Some(player_command) = command_optional { |
| 116 | match player_command { |
| 117 | PlayerCommand::ChangeState(state) => { |
| 118 | self.state = state; |
| 119 | } |
| 120 | } |
| 121 | } |
| 122 | } |
| 123 | |
| 124 | pub fn draw(&self) { |
| 125 | match self.state { |