• 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
GhostItem Class Reference

#include <ghostitem.h>

Inheritance diagram for GhostItem:
Inheritance graph
[legend]

Public Slots

void blink ()
 
void update (qreal p_x, qreal p_y)
 
void updateState ()
 
- 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

 GhostItem (Ghost *p_model)
 
 ~GhostItem ()
 
void updateBlinkTimersDuration ()
 
- 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 is the graphical representation of a Ghost.

Definition at line 28 of file ghostitem.h.

Constructor & Destructor Documentation

GhostItem::GhostItem ( Ghost *  p_model)

Creates a new GhostItem instance.

Parameters
p_modelthe Ghost model

Definition at line 22 of file ghostitem.cpp.

GhostItem::~GhostItem ( )

Deletes the CharacterItem instance.

Definition at line 41 of file ghostitem.cpp.

Member Function Documentation

void GhostItem::blink ( )
slot

Implements the CharacterItem method.

Definition at line 90 of file ghostitem.cpp.

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

Updates the view coordinates.

Parameters
p_xthe new x-coordinate
p_ythe new y-coordinate

Definition at line 53 of file ghostitem.cpp.

void GhostItem::updateBlinkTimersDuration ( )

Ensures the blink timers are correctly set.

Definition at line 45 of file ghostitem.cpp.

void GhostItem::updateState ( )
slot

Update the image function of the Ghost state.

Definition at line 61 of file ghostitem.cpp.


The documentation for this class was generated from the following files:
  • ghostitem.h
  • ghostitem.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