The ProjectileHitCommand indicates that a projectile hit a wagon. It contains the wagonIndex as well as the damage dealt.  
 More...
#include <projectilehitcommand.h>
The ProjectileHitCommand indicates that a projectile hit a wagon. It contains the wagonIndex as well as the damage dealt. 
It will update the local wagon health value.
- See also
 - Projectile, AbstractWagon 
 
 
      
        
          | terminus::ProjectileHitCommand::ProjectileHitCommand  | 
          ( | 
          Timer::TimerMSec  | 
          timeStamp,  | 
        
        
           | 
           | 
          bool  | 
          rightTrain,  | 
        
        
           | 
           | 
          int  | 
          wagonIndex,  | 
        
        
           | 
           | 
          float  | 
          damage  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
      
        
          | terminus::ProjectileHitCommand::ProjectileHitCommand  | 
          ( | 
          Timer::TimerMSec  | 
          timeStamp,  | 
        
        
           | 
           | 
          QJsonObject  | 
          jsonObject  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
  
  
      
        
          | virtual Commands terminus::ProjectileHitCommand::commandType  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inlineoverridevirtual   | 
  
 
 
  
  
      
        
          | float terminus::ProjectileHitCommand::damage  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
  
  
      
        
          | void terminus::ProjectileHitCommand::doWork  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
overridevirtual   | 
  
 
Every Commands must define its effects on the receiving game. 
This Method is guaranteed to be executed in the receiving game's frame update context with a valid Game instance in m_game 
Implements terminus::AbstractCommand.
 
 
  
  
      
        
          | bool terminus::ProjectileHitCommand::rightTrain  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
  
  
      
        
          | QJsonObject terminus::ProjectileHitCommand::toJson  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
overridevirtual   | 
  
 
Every command must define how its members can be serialized. 
- Returns
 - A QJsonObject containing the parameters / members 
 
Implements terminus::AbstractCommand.
 
 
  
  
      
        
          | int terminus::ProjectileHitCommand::wagonIndex  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
  
  
      
        
          | float terminus::ProjectileHitCommand::m_damage | 
         
       
   | 
  
protected   | 
  
 
 
  
  
      
        
          | bool terminus::ProjectileHitCommand::m_rightTrain | 
         
       
   | 
  
protected   | 
  
 
 
  
  
      
        
          | int terminus::ProjectileHitCommand::m_wagonIndex | 
         
       
   | 
  
protected   | 
  
 
 
The documentation for this class was generated from the following files: