Subversion Repositories programming

Rev

Rev 344 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

#ifndef DISPATCH_DATA_H
#define DISPATCH_DATA_H

const int DISPATCH_DATA_ELEVATOR_OPEN     = 1;
const int DISPATCH_DATA_ELEVATOR_CLOSE    = 2;
const int DISPATCH_DATA_UNSET_UP_BUTTON   = 3;
const int DISPATCH_DATA_UNSET_DOWN_BUTTON = 4;
const int DISPATCH_DATA_SET_LABEL         = 5;
const int DISPATCH_DATA_STOP_AT_FLOOR     = 6;
const int DISPATCH_DATA_UPDATE_LABEL      = 7;

#include "elevator.h"

class Elevator;

typedef struct
{
    int type;
    int iarg;
    float farg;
    Elevator *elev;
    int direc;
}
Dispatch_Data;

#endif