pub fn update_intern_cache(&mut self, game_data: &GameData) -> bool {
        let mut is_invalidated;
        is_invalidated = false;
        if self.player1_points != game_data.player1_points {
            self.player1_points = game_data.player1_points;
            is_invalidated = true;
        }
        if self.player2_points != game_data.player2_points {
            self.player2_points = game_data.player2_points;
            is_invalidated = true;
        }

        if self.this_machine_player_number != game_data.this_machine_player_number {
            self.this_machine_player_number = game_data.this_machine_player_number;
            is_invalidated = true;
        }
        if self.player_turn != game_data.player_turn {
            self.player_turn = game_data.player_turn;
            is_invalidated = true;
        }
        is_invalidated
    }
///copies the data from game data to internal cache
/// internal fiels are used to render component
copies the data from game data to internal cache
internal fiels are used to render component
copies the data from game data to internal cache internal fiels are used to render component
pub fn update_intern_cache(&mut self, game_data: &GameData) -> bool {
        let mut is_invalidated;
        is_invalidated = false;
        if self.player1_points != game_data.player1_points {
            self.player1_points = game_data.player1_points;
            is_invalidated = true;
        }
        if self.player2_points != game_data.player2_points {
            self.player2_points = game_data.player2_points;
            is_invalidated = true;
        }
        if self.this_machine_player_number != game_data.this_machine_player_number {
            self.this_machine_player_number = game_data.this_machine_player_number;
            is_invalidated = true;
        }
        if self.player_turn != game_data.player_turn {
            self.player_turn = game_data.player_turn;
            is_invalidated = true;
        }
        is_invalidated
    }
pub fn update_intern_cache ( & mut self , game_data : & GameData ) -> bool { let mut is_invalidated ; is_invalidated = false ; if self . player1_points != game_data . player1_points { self . player1_points = game_data . player1_points ; is_invalidated = true ; } if self . player2_points != game_data . player2_points { self . player2_points = game_data . player2_points ; is_invalidated = true ; } if self . this_machine_player_number != game_data . this_machine_player_number { self . this_machine_player_number = game_data . this_machine_player_number ; is_invalidated = true ; } if self . player_turn != game_data . player_turn { self . player_turn = game_data . player_turn ; is_invalidated = true ; } is_invalidated }
copies the data from game data to internal cache
internal fiels are used to render component
copies the data from game data to internal cache internal fiels are used to render component
&mut self
game_data
&GameData
&mut self
game_data
&GameData