28 lines
		
	
	
		
			580 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			580 B
		
	
	
	
		
			C++
		
	
	
	
	
	
#pragma once
 | 
						|
 | 
						|
#include <cstdint>
 | 
						|
#include <map>
 | 
						|
#include <string>
 | 
						|
 | 
						|
#include "db/database_manager.h"
 | 
						|
#include "command_processor.h"
 | 
						|
#include "machine.h"
 | 
						|
#include "machine_manager.h"
 | 
						|
 | 
						|
enum class PlayerState {
 | 
						|
  AUTHENTICATING,
 | 
						|
  ACTIVE
 | 
						|
};
 | 
						|
 | 
						|
class Player {
 | 
						|
public:
 | 
						|
  Player(uint32_t id, Machine* home_machine, std::map<std::string,
 | 
						|
         Machine*>& world_machines, DatabaseManager* db_manager,
 | 
						|
         MachineManager* machine_manager);
 | 
						|
  ~Player(void);
 | 
						|
 | 
						|
  uint32_t id;
 | 
						|
  PlayerState state;
 | 
						|
  CommandProcessor* cmd_processor; /* Manages the VFS state for the remote session. */
 | 
						|
};
 |