1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
#ifndef COMMANDMESSAGE_H
#define COMMANDMESSAGE_H
#include <string>
#include <boost/shared_ptr.hpp>
#include "Action.h"
namespace netcode {
class RawPacket;
}
/// send console commands over network
class CommandMessage
{
public:
CommandMessage(const std::string& cmd, int playernum);
CommandMessage(const Action& action, int playernum);
CommandMessage(boost::shared_ptr<const netcode::RawPacket>);
const netcode::RawPacket* Pack() const;
Action action;
int player;
private:
};
#endif
|