YAPOG  0.0.1
Yet Another Pokemon Online Game
yap::KeyboardGameInputEntry Class Reference

#include <KeyboardGameInputEntry.hpp>

Inheritance diagram for yap::KeyboardGameInputEntry:
Collaboration diagram for yap::KeyboardGameInputEntry:

List of all members.

Public Member Functions

 KeyboardGameInputEntry (Key key)
virtual ~KeyboardGameInputEntry ()
virtual void Update (const GuiEvent &guiEvent)
- Public Member Functions inherited from yap::GameInputEntry
 GameInputEntry ()
virtual ~GameInputEntry ()
bool IsActive () const
bool IsActivated () const
bool IsDeactivated () const
bool IsActive (const GuiEvent &guiEvent) const
bool IsActivated (const GuiEvent &guiEvent) const
bool IsDeactivated (const GuiEvent &guiEvent) const
void BeginUpdate ()
void EndUpdate ()

Private Member Functions

 DISALLOW_COPY (KeyboardGameInputEntry)
virtual bool GuiEventIsCompatible (const GuiEvent &guiEvent) const
 Checks that the event parameters (key, mouse button...) correpond to this game input entry.

Private Attributes

Key key_

Additional Inherited Members

- Protected Member Functions inherited from yap::GameInputEntry
void Activate (bool isActive)

Detailed Description

Definition at line 13 of file KeyboardGameInputEntry.hpp.


Constructor & Destructor Documentation

yap::KeyboardGameInputEntry::KeyboardGameInputEntry ( Key  key)
explicit

Definition at line 5 of file KeyboardGameInputEntry.cpp.

yap::KeyboardGameInputEntry::~KeyboardGameInputEntry ( )
virtual

Definition at line 11 of file KeyboardGameInputEntry.cpp.


Member Function Documentation

yap::KeyboardGameInputEntry::DISALLOW_COPY ( KeyboardGameInputEntry  )
private
bool yap::KeyboardGameInputEntry::GuiEventIsCompatible ( const GuiEvent guiEvent) const
privatevirtual

Checks that the event parameters (key, mouse button...) correpond to this game input entry.

Implements yap::GameInputEntry.

Definition at line 42 of file KeyboardGameInputEntry.cpp.

void yap::KeyboardGameInputEntry::Update ( const GuiEvent guiEvent)
virtual

Implements yap::GameInputEntry.

Definition at line 15 of file KeyboardGameInputEntry.cpp.

Here is the call graph for this function:


Member Data Documentation

Key yap::KeyboardGameInputEntry::key_
private

Definition at line 28 of file KeyboardGameInputEntry.hpp.


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