~ubuntu-branches/ubuntu/vivid/kapman/vivid-proposed

« back to all changes in this revision

Viewing changes to pill.h

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2012-12-07 17:37:19 UTC
  • Revision ID: package-import@ubuntu.com-20121207173719-5973b949kqub4zup
Tags: upstream-4.9.90
Import upstream version 4.9.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright 2007-2008 Thomas Gallinari <tg8187@yahoo.fr>
 
3
 * Copyright 2007-2008 Gaël Courcelle <gael.courcelle@gmail.com>
 
4
 * Copyright 2007-2008 Alexia Allanic <alexia_allanic@yahoo.fr>
 
5
 * 
 
6
 * This program is free software; you can redistribute it and/or
 
7
 * modify it under the terms of the GNU General Public License as
 
8
 * published by the Free Software Foundation; either version 2 of 
 
9
 * the License, or (at your option) any later version.
 
10
 * 
 
11
 * This program is distributed in the hope that it will be useful,
 
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
14
 * GNU General Public License for more details.
 
15
 * 
 
16
 * You should have received a copy of the GNU General Public License
 
17
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
18
 */
 
19
 
 
20
#ifndef PILL_H
 
21
#define PILL_H
 
22
 
 
23
#include "element.h"
 
24
 
 
25
/**
 
26
 * @brief This class represents a Pill enabling to earn points.
 
27
 */
 
28
class Pill : public Element {
 
29
 
 
30
        public:
 
31
 
 
32
                /** The Pill value */
 
33
                static const int POINTS;
 
34
 
 
35
        public:
 
36
 
 
37
                /**
 
38
                 * Creates a new Pill instance.
 
39
                 */
 
40
                Pill(qreal p_x, qreal p_y, Maze* p_maze, const QString& p_imageId);
 
41
 
 
42
                /**
 
43
                 * Deletes the Pill instance.
 
44
                 */
 
45
                ~Pill();
 
46
 
 
47
                /**
 
48
                 * Computes an action on a collision with the Kapman.
 
49
                 * @param p_kapman the instance of Kapman which collides with the Pill
 
50
                 */
 
51
                void doActionOnCollision(Kapman* p_kapman);
 
52
};
 
53
 
 
54
#endif
 
55