The GameEndedCommand signals that the remote game detected a winning or losing condition. It will display a victory or defeat screen accordingly.  
 More...
#include <gameendedcommand.h>
The GameEndedCommand signals that the remote game detected a winning or losing condition. It will display a victory or defeat screen accordingly. 
 
      
        
          | terminus::GameEndedCommand::GameEndedCommand  | 
          ( | 
          Timer::TimerMSec  | 
          timeStamp,  | 
        
        
           | 
           | 
          bool  | 
          youWin  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
      
        
          | terminus::GameEndedCommand::GameEndedCommand  | 
          ( | 
          Timer::TimerMSec  | 
          timeStamp,  | 
        
        
           | 
           | 
          QJsonObject  | 
          jsonObject  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
  
  
      
        
          | virtual Commands terminus::GameEndedCommand::commandType  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inlineoverridevirtual   | 
  
 
 
  
  
      
        
          | void terminus::GameEndedCommand::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.
 
 
  
  
      
        
          | QJsonObject terminus::GameEndedCommand::toJson  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
overridevirtual   | 
  
 
Every command must define how its members can be serialized. 
- Returns
 - A QJsonObject containing the parameters / members 
 
Implements terminus::AbstractCommand.
 
 
  
  
      
        
          | bool terminus::GameEndedCommand::youWin  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
  
  
      
        
          | bool terminus::GameEndedCommand::m_youWin | 
         
       
   | 
  
protected   | 
  
 
 
The documentation for this class was generated from the following files: