menu_events.hpp File Reference

#include "global.hpp"
#include "show_dialog.hpp"
#include "display.hpp"
#include "floating_textbox.hpp"
#include "mouse_events.hpp"
#include "statistics.hpp"
#include "widgets/textbox.hpp"

Include dependency graph for menu_events.hpp:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  events

Classes

struct  end_level_exception
struct  end_turn_exception
class  events::chat_handler
class  events::menu_handler

Defines

#define DELAY_END_LEVEL(end_ptr, code)
#define THROW_END_LEVEL_DELETE(end_ptr)
#define THROW_END_LEVEL(end_ptr)

Enumerations

enum  LEVEL_RESULT {
  VICTORY, DEFEAT, QUIT, LEVEL_CONTINUE,
  LEVEL_CONTINUE_NO_SAVE, OBSERVER_END, SKIP_TO_LINGER
}


Define Documentation

#define DELAY_END_LEVEL ( end_ptr,
code   ) 

Value:

try { \
    code; \
    } catch ( end_level_exception &e) { \
        if (end_ptr == 0) { \
            end_ptr = new end_level_exception(e); \
        } \
    }

Definition at line 33 of file menu_events.hpp.

Referenced by attack::attack(), do_replay_handle(), and attack::fire_event().

#define THROW_END_LEVEL ( end_ptr   ) 

Value:

if (end_ptr) {\
    throw end_level_exception(*end_ptr); \
    }

Definition at line 47 of file menu_events.hpp.

Referenced by attack::attack().

#define THROW_END_LEVEL_DELETE ( end_ptr   ) 

Value:

if (end_ptr) {\
    end_level_exception temp_exception(*end_ptr);\
    delete end_ptr; \
    throw temp_exception; \
    }

Definition at line 41 of file menu_events.hpp.

Referenced by do_replay_handle().


Enumeration Type Documentation

Enumerator:
VICTORY 
DEFEAT 
QUIT 
LEVEL_CONTINUE 
LEVEL_CONTINUE_NO_SAVE 
OBSERVER_END 
SKIP_TO_LINGER 

Definition at line 31 of file menu_events.hpp.


Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs