Creates an Enemy object that inherits MapObject which in turn inherits Creature.  
 More...
#include <enemy.h>
 | 
| 
int  | type | 
|   | 
| 
bool  | deleteable | 
|   | 
| 
float  | speed | 
|   | 
| 
float  | velocityX | 
|   | 
| 
float  | velocityY | 
|   | 
| 
Texture *  | texture | 
|   | 
| 
int  | srcWidth | 
|   | 
| 
int  | srcHeight | 
|   | 
| 
int  | srcX | 
|   | 
| 
int  | srcY | 
|   | 
| 
int  | width | 
|   | 
| 
int  | height | 
|   | 
| 
float  | x | 
|   | 
| 
float  | y | 
|   | 
Creates an Enemy object that inherits MapObject which in turn inherits Creature. 
 
      
        
          | Enemy::Enemy  | 
          ( | 
          Texture *  | 
          inputTexture,  | 
        
        
           | 
           | 
          float  | 
          inX,  | 
        
        
           | 
           | 
          float  | 
          inY,  | 
        
        
           | 
           | 
          int  | 
          inType  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Constructs an Enemy object Constructs the Enemy object. 
- Parameters
 - 
  
    | Texture* | a pointer to a Texture loaded into memory.  | 
    | float | initial x position.  | 
    | float | initial y position.  | 
    | int | the Enemy type.  | 
  
   
 
 
De-constructs an Enemy object De-constructs the Enemy object 
 
 
      
        
          | bool Enemy::getDeletable  | 
          ( | 
           | ) | 
           | 
        
      
 
Getter # deleteable 
- Returns
 - bool does the object need deleting. 
 
 
 
      
        
          | float Enemy::getSpeed  | 
          ( | 
           | ) | 
           | 
        
      
 
Getter # speed 
- Returns
 - float the enemy's speed. 
 
 
 
Getter # type 
- Returns
 - int the type. 
 
 
 
      
        
          | void Enemy::setDeletable  | 
          ( | 
          bool  | 
          inputDelete | ) | 
           | 
        
      
 
Setter # deleteable Sets if the object needs to be deleted. 
- Parameters
 - 
  
    | bool | does the object need deleting.  | 
  
   
 
 
      
        
          | void Enemy::setSpeed  | 
          ( | 
          float  | 
          inputSpeed | ) | 
           | 
        
      
 
Setter # speed Sets the speed of the enemy. 
- Parameters
 - 
  
  
 
 
 
      
        
          | void Enemy::typeSetup  | 
          ( | 
           | ) | 
           | 
        
      
 
Sets the type of the Enemy Uses the value of type to set up initial values for the Enemy 
 
 
The documentation for this class was generated from the following files:
- PGGAssignment1SDL/enemy.h
 
- PGGAssignment1SDL/enemy.cpp