Micropolis
FrontendMessageMakeSound Class Reference

#include <frontendmessage.h>

Inheritance diagram for FrontendMessageMakeSound:
FrontendMessage

Public Member Functions

 FrontendMessageMakeSound (const std::string &channel, const std::string &sound, int x, int y)
 
virtual void sendMessage (Micropolis *sim) const
 Send the message to the front-end.
 
- Public Member Functions inherited from FrontendMessage
 FrontendMessage ()
 
virtual ~FrontendMessage ()
 

Public Attributes

std::string channel
 
std::string sound
 
int x
 
int y
 

Detailed Description

Store a 'makeSound' message.

Definition at line 121 of file frontendmessage.h.

Constructor & Destructor Documentation

◆ FrontendMessageMakeSound()

FrontendMessageMakeSound::FrontendMessageMakeSound ( const std::string &  channel,
const std::string &  sound,
int  x,
int  y 
)

Definition at line 126 of file frontendmessage.cpp.

◆ ~FrontendMessageMakeSound()

FrontendMessageMakeSound::~FrontendMessageMakeSound ( )
virtual

Definition at line 138 of file frontendmessage.cpp.

Member Function Documentation

◆ sendMessage()

void FrontendMessageMakeSound::sendMessage ( Micropolis sim) const
virtual

Send the message to the front-end.

Parameters
simSimulator instance to use.

Implements FrontendMessage.

Definition at line 143 of file frontendmessage.cpp.

References Micropolis::makeSound().

Member Data Documentation

◆ channel

std::string FrontendMessageMakeSound::channel

Definition at line 125 of file frontendmessage.h.

◆ sound

std::string FrontendMessageMakeSound::sound

Definition at line 126 of file frontendmessage.h.

◆ x

int FrontendMessageMakeSound::x

Definition at line 127 of file frontendmessage.h.

◆ y

int FrontendMessageMakeSound::y

Definition at line 127 of file frontendmessage.h.


The documentation for this class was generated from the following files: