zenilib  0.5.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Zeni::Console_State Class Reference

Provide a text console to process commands. More...

#include <Console_State.h>

Inherits Zeni::Gamestate_Base.

Public Member Functions

void clear_log ()
 
void give_function (const String &name, Console_Function *const &function)
 
void write_to_log (const String &text)
 
- Public Member Functions inherited from Zeni::Gamestate_Base
 Gamestate_Base ()
 
virtual ~Gamestate_Base ()
 
const bool & is_pausable () const
 
virtual void on_cover ()
 Called when a Gamestate is pushed on top of this Gamestate in Game. More...
 
virtual void on_pop ()
 Called when the Gamestate is popped off the stack in Game. More...
 
virtual void on_push ()
 Called when the Gamestate is pushed onto the stack in Game. More...
 
virtual void on_uncover ()
 Called when a Gamestate is popped off Game, making this Gamestate on top. More...
 
void set_pausable (const bool &pausable_)
 

Friends

class Game
 

Additional Inherited Members

- Static Public Member Functions inherited from Zeni::Gamestate_Base
static char to_char (const SDL_Keysym &ks)
 Returns a character key corresponding to the current combination of keys pressed or the null character (0). More...
 
static SDL_Keycode to_sym (const String &text_version)
 Convert a text representation to an actual sym. More...
 
static String to_text (const SDL_Keycode &sym)
 Convert a sym to a text representation. More...
 
- Protected Member Functions inherited from Zeni::Gamestate_Base
virtual void on_active (const SDL_ActiveEvent &event)
 Override this input callback in your Gamestates. See SDL documentation for details. More...
 
virtual void on_controller_axis (const SDL_ControllerAxisEvent &event)
 Override this input callback in your Gamestates. See SDL documentation for details. More...
 
virtual void on_controller_button (const SDL_ControllerButtonEvent &event)
 Override this input callback in your Gamestates. See SDL documentation for details. More...
 
virtual void on_controller_device (const SDL_ControllerDeviceEvent &event)
 Override this input callback in your Gamestates. See SDL documentation for details. More...
 
virtual void on_quit (const SDL_QuitEvent &event)
 Override this input callback in your Gamestates. See SDL documentation for details. More...
 
virtual void on_system_wm_event (const SDL_SysWMEvent &event)
 Override this input callback in your Gamestates. See SDL documentation for details. More...
 
virtual void on_user_event (const SDL_UserEvent &event)
 Override this input callback in your Gamestates. See SDL documentation for details. More...
 
virtual void on_video_expose (const SDL_ExposeEvent &event)
 Override this input callback in your Gamestates. See SDL documentation for details. More...
 
virtual void on_video_resize (const SDL_ResizeEvent &event)
 Override this input callback in your Gamestates. See SDL documentation for details. More...
 

Detailed Description

Provide a text console to process commands.

Author
bazald

Contact: bazal.nosp@m.d@ze.nosp@m.nipex.nosp@m..com

Definition at line 48 of file Console_State.h.

Member Function Documentation

void Zeni::Console_State::clear_log ( )

Definition at line 93 of file Console_State.cpp.

References Zeni::String::clear().

void Zeni::Console_State::give_function ( const String name,
Console_Function *const function 
)

Definition at line 98 of file Console_State.cpp.

References assert.

Friends And Related Function Documentation

friend class Game
friend

Definition at line 52 of file Console_State.h.


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