• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdegames API Reference
  • KDE Home
  • Contact Us
 

kapman

Public Slots | Public Member Functions | List of all members
KapmanItem Class Reference

#include <kapmanitem.h>

Inheritance diagram for KapmanItem:
Inheritance graph
[legend]

Public Slots

void blink ()
 
void manageCollision ()
 
void pauseAnim ()
 
void resumeAnim ()
 
void setFrame (const int p_frame)
 
void setRotationFlag (bool rotate)
 
void startAnim ()
 
void startBlinking ()
 
void stopAnim ()
 
void update (qreal p_x, qreal p_y)
 
void updateDirection ()
 
- Public Slots inherited from CharacterItem
virtual void blink ()
 
virtual void startBlinking ()
 
virtual void update (qreal p_x, qreal p_y)
 
- Public Slots inherited from ElementItem
virtual void update (qreal p_x, qreal p_y)
 

Public Member Functions

 KapmanItem (Kapman *p_model)
 
 ~KapmanItem ()
 
- Public Member Functions inherited from CharacterItem
 CharacterItem (Character *p_model)
 
 ~CharacterItem ()
 
QPainterPath shape () const
 
- Public Member Functions inherited from ElementItem
 ElementItem (Element *p_model)
 
 ~ElementItem ()
 
Element * getModel () const
 
QPainterPath shape () const
 

Additional Inherited Members

- Protected Attributes inherited from CharacterItem
QTimer * m_blinkTimer
 
int m_nbBlinks
 
- Protected Attributes inherited from ElementItem
Element * m_model
 

Detailed Description

This class manage the display of the Kapman.

Definition at line 29 of file kapmanitem.h.

Constructor & Destructor Documentation

KapmanItem::KapmanItem ( Kapman *  p_model)

Creates a new KapmanItem instance.

Parameters
p_modelthe Kapman model

Definition at line 33 of file kapmanitem.cpp.

KapmanItem::~KapmanItem ( )

Deletes the KapmanItem instance.

Definition at line 64 of file kapmanitem.cpp.

Member Function Documentation

void KapmanItem::blink ( )
slot

Implements the CharacterItem method.

Definition at line 155 of file kapmanitem.cpp.

void KapmanItem::manageCollision ( )
slot

Manages the collisions with any Element.

Definition at line 95 of file kapmanitem.cpp.

void KapmanItem::pauseAnim ( )
slot

Pauses the KapmanItem animation.

Definition at line 129 of file kapmanitem.cpp.

void KapmanItem::resumeAnim ( )
slot

Resumes the KapmanItem animation.

Definition at line 134 of file kapmanitem.cpp.

void KapmanItem::setFrame ( const int  p_frame)
slot

Sets the given frame to the KapmanItem.

Parameters
p_framethe frame to set

Definition at line 145 of file kapmanitem.cpp.

void KapmanItem::setRotationFlag ( bool  rotate)
inlineslot

Set if the KapmanItem should be rotated (set by theme flag RotateKapman).

Parameters
0or 1

Definition at line 121 of file kapmanitem.h.

void KapmanItem::startAnim ( )
slot

Starts the KapmanItem animation.

Definition at line 122 of file kapmanitem.cpp.

void KapmanItem::startBlinking ( )
slot

Implements the CharacterItem method.

Definition at line 149 of file kapmanitem.cpp.

void KapmanItem::stopAnim ( )
slot

Stops the KapmanItem animation.

Definition at line 139 of file kapmanitem.cpp.

void KapmanItem::update ( qreal  p_x,
qreal  p_y 
)
slot

Updates the KapmanItem coordinates.

Parameters
p_xthe new x-coordinate
p_ythe new y-coordinate

Definition at line 113 of file kapmanitem.cpp.

void KapmanItem::updateDirection ( )
slot

Rotates the image function of the Kapman direction.

Definition at line 68 of file kapmanitem.cpp.


The documentation for this class was generated from the following files:
  • kapmanitem.h
  • kapmanitem.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:44:03 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kapman

Skip menu "kapman"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdegames API Reference

Skip menu "kdegames API Reference"
  • granatier
  • kapman
  • kblackbox
  • kgoldrunner
  • kigo
  • kmahjongg
  • KShisen
  • ksquares
  • libkdegames
  •   highscore
  •   libkdegamesprivate
  •     kgame
  • libkmahjongg
  • palapeli
  •   libpala

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal