mirror of
https://github.com/devZoGok/PlanetFleet.git
synced 2026-08-27 12:03:31 +00:00
34 lines
821 B
C++
Executable File
34 lines
821 B
C++
Executable File
#pragma once
|
|
#ifndef CONSOLE_COMMAND_H
|
|
#define CONSOLE_COMMAND_H
|
|
|
|
#include <vector>
|
|
|
|
#include "unit.h"
|
|
#include "listbox.h"
|
|
#include "player.h"
|
|
|
|
namespace game
|
|
{
|
|
namespace gui{
|
|
class ConsoleCommand{
|
|
public:
|
|
ConsoleCommand(vb01Gui::Listbox*, std::vector<content::Player*>, std::string, std::vector<std::string>);
|
|
~ConsoleCommand();
|
|
void execute();
|
|
private:
|
|
vb01Gui::Listbox *listbox;
|
|
void printConsoleMessage(std::string);
|
|
std::vector<content::Player*> players;
|
|
std::string name;
|
|
std::vector<std::string> arguments;
|
|
std::string commandList[2] = {"addUnit","debugUnits"};
|
|
// #0
|
|
void addUnit();
|
|
// #1
|
|
void debugUnits();
|
|
};
|
|
}
|
|
}
|
|
#endif
|