Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

anoid::main::Anoid Class Reference

#include <anoid.hh>

Collaboration diagram for anoid::main::Anoid:

Collaboration graph
[legend]
List of all members.

Public Methods

 Anoid (context::Context *context)
virtual void loadLevel (config::Configuration &c)
virtual void runLevel ()
 ~Anoid ()

Protected Methods

virtual void processEvents ()
virtual void handleKeyUp (SDL_keysym *keysym)
virtual void handleKeyDown (SDL_keysym *keysym)
virtual void handlePointerMove (signed int id, signed int dx, signed int dy)

Private Attributes

context::Context_context
base::AbstractWorld_world

Constructor & Destructor Documentation

anoid::main::Anoid::Anoid context::Context   context
 

Definition at line 16 of file anoid.cc.

References _context, anoid::main::context, and anoid::context::Context::initWindow().

anoid::main::Anoid::~Anoid  
 

Definition at line 25 of file anoid.cc.

References _world.


Member Function Documentation

void anoid::main::Anoid::handleKeyDown SDL_keysym *    keysym [protected, virtual]
 

Definition at line 74 of file anoid.cc.

References _context, _world, anoid::simple::k(), anoid::base::AbstractWorld::send(), KeyboardMessage::setDown(), and KeyboardMessage::setKey().

Referenced by processEvents().

void anoid::main::Anoid::handleKeyUp SDL_keysym *    keysym [protected, virtual]
 

Definition at line 67 of file anoid.cc.

References _world, anoid::simple::k(), anoid::base::AbstractWorld::send(), KeyboardMessage::setKey(), and KeyboardMessage::setUp().

Referenced by processEvents().

void anoid::main::Anoid::handlePointerMove signed int    id,
signed int    dx,
signed int    dy
[protected, virtual]
 

Definition at line 88 of file anoid.cc.

References _world, anoid::base::AbstractWorld::send(), PointerMessage::setID(), and PointerMessage::setMove().

Referenced by processEvents().

void anoid::main::Anoid::loadLevel config::Configuration   c [virtual]
 

Definition at line 29 of file anoid.cc.

References _context, and _world.

Referenced by anoid::main::main().

void anoid::main::Anoid::processEvents   [protected, virtual]
 

Definition at line 46 of file anoid.cc.

References _context, handleKeyDown(), handleKeyUp(), and handlePointerMove().

Referenced by runLevel().

void anoid::main::Anoid::runLevel   [virtual]
 

Definition at line 33 of file anoid.cc.

References _context, _world, anoid::base::AbstractWorld::fireEvents(), processEvents(), anoid::base::Object::redraw(), anoid::context::Context::swapBuffers(), and anoid::base::Object::update().

Referenced by anoid::main::main().


Member Data Documentation

context::Context* anoid::main::Anoid::_context [private]
 

Definition at line 13 of file anoid.hh.

Referenced by Anoid(), handleKeyDown(), loadLevel(), processEvents(), and runLevel().

base::AbstractWorld* anoid::main::Anoid::_world [private]
 

Definition at line 14 of file anoid.hh.

Referenced by handleKeyDown(), handleKeyUp(), handlePointerMove(), loadLevel(), runLevel(), and ~Anoid().


The documentation for this class was generated from the following files:
Anoid NG © Michael Westergaard, Martin Stig Stissing, Ronni Michael Laursen, and Kristian Bisgaard Lassen