~ubuntu-branches/ubuntu/natty/kdegames/natty-proposed

« back to all changes in this revision

Viewing changes to kbounce/board.h

  • Committer: Bazaar Package Importer
  • Author(s): Rohan Garg
  • Date: 2010-05-28 20:16:42 UTC
  • mfrom: (1.2.45 upstream)
  • Revision ID: james.westby@ubuntu.com-20100528201642-vh75rp06hh5hjt6l
Tags: 4:4.4.80-0ubuntu1
* New upstream beta release
* New package for kajongg in debian/control
* Custom deb flag for kajongg in debian/rules
* New install file for kajongg
* Remove README.source from debian/
* Bump dep on kde-sc-dev-latest to 4.4.80

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
 
27
27
#include "gameobject.h"
28
28
#include "renderer.h"
 
29
#include "sound.h"
29
30
 
30
31
#define TILE_NUM_H 20
31
32
#define TILE_NUM_W 32
32
33
 
33
 
namespace Phonon
34
 
{
35
 
    class MediaObject;
36
 
}
37
34
 
38
35
class KBounceBall;
39
36
class KBounceWall;
69
66
        void playSound( const QString& name );
70
67
        void setSoundPath( const QString& path );
71
68
        void setSounds( bool val );
72
 
 
 
69
        void setBallVelocity(qreal velocity);
 
70
        void setWallVelocity(qreal velocity);
73
71
    signals:
74
72
        void ballsChanged( int balls );
75
73
        void fillChanged( int fill );
77
75
 
78
76
    protected slots:
79
77
        void tick();
80
 
        void wallFinished( int x1, int y1, int x2, int y2 );
 
78
        void wallFinished( int x1, int y1, int x2, int y2 );
81
79
 
82
80
    private:
83
81
        void clear();
95
93
 
96
94
        QTimer* m_clock;
97
95
 
98
 
        Phonon::MediaObject* m_audioPlayer;
99
 
        bool m_playSounds;
100
 
        QString m_soundPath;
 
96
        KBounceSound* m_sound;
 
97
    
 
98
        qreal m_ballVelocity;
 
99
        qreal m_wallVelocity;
101
100
};
102
101
 
103
102
#endif // BOARD_H