# command_queue.h

    00001 /* $Id: command_queue.h 4998 2006-05-30 16:13:41Z Frostregen $ */
    00002
    00003 #ifndef COMMAND_QUEUE_H
    00004 #define COMMAND_QUEUE_H
    00005
    00006 #include "map_type.h"
    00007 #include "command_type.h"
    00008 #include "settings_type.h"
    00009 #include <queue>
    00010
    00011 class CopyPasteCommandQueue {
    00012 private:
    00013   std::queue<CommandContainer *> queue;
    00014
    00015 public:
    00016   ~CopyPasteCommandQueue();
    00017
    00018   void ClearCopyPasteCommandQueue();
    00019
    00020   void CopyPasteQueueCommand(TileIndex tile, uint32 p1, uint32 p2, CommandCallback *callback, uint32 cmd);
    00021   void ExecuteNextCommand();
    00022 };
    00023
    00024 extern CopyPasteCommandQueue _copy_paste_command_queue;
    00025
    00026 void CallCopyPasteCommandQueueTick();
    00027
    00028 #endif /* COMMAND_QUEUE_H */