Creates an Player object that inherits Entity Creates an Player object that inherits Entity with a x velocity.  
 More...
#include <player.h>
Creates an Player object that inherits Entity Creates an Player object that inherits Entity with a x velocity. 
Definition at line 9 of file player.h.
 
      
        
          | Player::Player  | 
          ( | 
          float  | 
          ,  | 
        
        
           | 
           | 
          float  | 
          ,  | 
        
        
           | 
           | 
          int  | 
          ,  | 
        
        
           | 
           | 
          int  | 
          ,  | 
        
        
           | 
           | 
          int  | 
            | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Constructs the Player object 
- Parameters
 - 
  
    | float | the initial x position  | 
    | float | the initial y position  | 
    | int | the Player sprite's x scale  | 
    | int | the Player sprite's y scale  | 
    | int | the Player current animation index;  | 
  
   
 
 
      
        
          | float Player::getXVelocity  | 
          ( | 
           | ) | 
           | 
        
      
 
Getter # x velocity 
- Returns
 - the x velocity of the Player object. 
 
 
 
      
        
          | void Player::setXVelocity  | 
          ( | 
          float  | 
           | ) | 
           | 
        
      
 
Setter # x velocity Sets the x velocity of the Player object to the inputed velocity. 
- Parameters
 - 
  
    | float | the inputed x velocity  | 
  
   
 
 
      
        
          | void Player::updateX  | 
          ( | 
          float  | 
           | ) | 
           | 
        
      
 
Updates the Player x position Updates the Player x position using the velocity and the dt. 
- Parameters
 - 
  
  
 
 
 
The documentation for this class was generated from the following file: