home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C++ Games Programming
/
CPPGAMES.ISO
/
thx
/
source
/
theatrix
/
msgfold.cpp
< prev
next >
Wrap
C/C++ Source or Header
|
1995-04-26
|
398b
|
23 lines
#include <dos.h>
#include "handler.h"
#include "msgfold.h"
void MessageFolder::reset()
{
for (int i=0;i<MAXMESSAGE;i++)
messagenumber[i].reset();
}
void MessageFolder::dispatch(int, int, int)
{
int msg;
int data1, data2;
while (!msgQ.isempty())
{
msgQ.get(&msg,&data1,&data2);
messagenumber[msg].execute_callbacks(msg,data1,data2);
}
}