107 FrontendMessageDidTool::FrontendMessageDidTool(
const std::string &tool,
int x,
int y)
115 FrontendMessageDidTool::~FrontendMessageDidTool()
122 sim->
didTool(this->tool, this->x, this->y);
126 FrontendMessageMakeSound::FrontendMessageMakeSound(
127 const std::string &channel,
128 const std::string &sound,
131 this->channel = channel;
138 FrontendMessageMakeSound::~FrontendMessageMakeSound()
145 sim->
makeSound(this->channel, this->sound, this->x, this->y);
virtual void sendMessage(Micropolis *sim) const
Send the message to the front-end.
virtual ~FrontendMessage()
void makeSound(const std::string &channel, const std::string &sound, int x=-1, int y=-1)
void didTool(std::string name, short x, short y)
Header file for Micropolis game engine.