Cantagallo/Cantagallo/Proxy/PlayerPowerUpProxy.cs
/// <summary>
/// this method works like a cache: save the player's state and gives or denies the possibility to go to the real method
/// </summary>
/// <param name="color"></param>
/// <param name="speed"></param>
/// <param name="health"></param>
/// <param name="jumps"></param>
this method works like a cache: save the player's state and gives or denies the possibility to go to the real method
this method works like a cache : save the player ' s state and gives or denies the possibility to go to the real method
private void CalledCached(PlayerColor color, int speed, int health, int jumps)
        {
            if (player.PColor != color)
            {
                playerPowerUp.Transformation(color, speed, health, jumps);
            }
        }
private void CalledCached ( PlayerColor color , int speed , int health , int jumps ) { if ( player . PColor != color ) { playerPowerUp . Transformation ( color , speed , health , jumps ) ; } }
this method works like a cache: save the player's state and gives or denies the possibility to go to the real method
this method works like a cache : save the player ' s state and gives or denies the possibility to go to the real method
color
PlayerColor
None
speed
int
None
health
int
None
jumps
int
None