SpriteNotify Class Reference

SpriteNotify provides a QObject to a sprite that allows to emit a signal from athis sprite if it is necessary to notify another object with an action of the sprite, like animation or movement finished. More...

#include <spritenotify.h>

List of all members.

Signals

void signalNotify (QGraphicsItem *item, int mode)
 Signal the event for the graphics item and the mode parameter.

Public Member Functions

 SpriteNotify (QGraphicsItem *parent)
 Create the object.
void emitSignal (int mode)
 Emit the notification signal.


Detailed Description

SpriteNotify provides a QObject to a sprite that allows to emit a signal from athis sprite if it is necessary to notify another object with an action of the sprite, like animation or movement finished.

Definition at line 32 of file spritenotify.h.


Constructor & Destructor Documentation

SpriteNotify::SpriteNotify QGraphicsItem *  parent  ) 
 

Create the object.

Parameters:
parent The parent graphics item.

Definition at line 32 of file spritenotify.cpp.


Member Function Documentation

void SpriteNotify::emitSignal int  mode  ) 
 

Emit the notification signal.

Parameters:
mode A user defined parameter.

Definition at line 40 of file spritenotify.cpp.

References signalNotify().

Referenced by PieceSprite::advance().

void SpriteNotify::signalNotify QGraphicsItem *  item,
int  mode
[signal]
 

Signal the event for the graphics item and the mode parameter.

Parameters:
item The sprite
mode The user defined mode

Referenced by emitSignal().


The documentation for this class was generated from the following files:
Generated on Sun Mar 4 10:56:43 2007 for KWin4 by  doxygen 1.4.6