~kubuntu-members/kapman/4.11

« back to all changes in this revision

Viewing changes to kapmanitem.cpp

  • Committer: Pierre-Benoit Besse
  • Date: 2008-08-15 11:43:49 UTC
  • Revision ID: git-v1:89f706af55b38ee770ceb235d4dfe581e41f028c
- All images are now in a single SVG file
- Small improvments in preformances by fixing some mistakes

svn path=/trunk/playground/games/kapman/; revision=847429

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
const int KapmanItem::ANIM_MEDIUM_SPEED = 400;
29
29
const int KapmanItem::ANIM_HIGH_SPEED = 300;
30
30
 
31
 
KapmanItem::KapmanItem(Kapman* p_model, const QString & p_imagePath) : CharacterItem(p_model, p_imagePath) {
 
31
KapmanItem::KapmanItem(Kapman* p_model) : CharacterItem(p_model) {
32
32
        connect(p_model, SIGNAL(directionChanged()), this, SLOT(updateDirection()));
33
33
        connect(p_model, SIGNAL(gameUpdated()), this, SLOT(manageCollision()));
34
34
        connect(p_model, SIGNAL(stopped()), this, SLOT(stopAnim()));
46
46
                m_animationTimer->setDuration(KapmanItem::ANIM_HIGH_SPEED);
47
47
        }
48
48
        connect(m_animationTimer, SIGNAL(frameChanged(int)), this, SLOT(setFrame(int)));
49
 
        setElementId("kapman_0");
50
49
}
51
50
 
52
51
KapmanItem::~KapmanItem() {