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

#include <GameInputEntry.hpp>

Inheritance diagram for yap::GameInputEntry:
Collaboration diagram for yap::GameInputEntry:

List of all members.

Public Member Functions

 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 ()
virtual void Update (const GuiEvent &guiEvent)=0
void EndUpdate ()

Protected Member Functions

void Activate (bool isActive)

Private Member Functions

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

Private Attributes

bool isActive_
bool previousIsActive_

Detailed Description

Definition at line 9 of file GameInputEntry.hpp.


Constructor & Destructor Documentation

yap::GameInputEntry::GameInputEntry ( )

Definition at line 5 of file GameInputEntry.cpp.

yap::GameInputEntry::~GameInputEntry ( )
virtual

Definition at line 11 of file GameInputEntry.cpp.


Member Function Documentation

void yap::GameInputEntry::Activate ( bool  isActive)
protected

Definition at line 15 of file GameInputEntry.cpp.

Here is the caller graph for this function:

void yap::GameInputEntry::BeginUpdate ( )

Definition at line 52 of file GameInputEntry.cpp.

Here is the call graph for this function:

yap::GameInputEntry::DISALLOW_COPY ( GameInputEntry  )
private
void yap::GameInputEntry::EndUpdate ( )

Definition at line 60 of file GameInputEntry.cpp.

virtual bool yap::GameInputEntry::GuiEventIsCompatible ( const GuiEvent guiEvent) const
privatepure virtual

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

Implemented in yap::KeyboardGameInputEntry, and yap::MouseGameInputEntry.

Here is the caller graph for this function:

bool yap::GameInputEntry::IsActivated ( ) const

Definition at line 27 of file GameInputEntry.cpp.

Here is the caller graph for this function:

bool yap::GameInputEntry::IsActivated ( const GuiEvent guiEvent) const

Definition at line 42 of file GameInputEntry.cpp.

Here is the call graph for this function:

bool yap::GameInputEntry::IsActive ( ) const

Definition at line 22 of file GameInputEntry.cpp.

Here is the caller graph for this function:

bool yap::GameInputEntry::IsActive ( const GuiEvent guiEvent) const

Definition at line 37 of file GameInputEntry.cpp.

Here is the call graph for this function:

bool yap::GameInputEntry::IsDeactivated ( ) const

Definition at line 32 of file GameInputEntry.cpp.

Here is the caller graph for this function:

bool yap::GameInputEntry::IsDeactivated ( const GuiEvent guiEvent) const

Definition at line 47 of file GameInputEntry.cpp.

Here is the call graph for this function:

virtual void yap::GameInputEntry::Update ( const GuiEvent guiEvent)
pure virtual

Member Data Documentation

bool yap::GameInputEntry::isActive_
private

Definition at line 40 of file GameInputEntry.hpp.

bool yap::GameInputEntry::previousIsActive_
private

Definition at line 41 of file GameInputEntry.hpp.


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