ScummVM API documentation
scalpel_darts.h
1
/* ScummVM - Graphic Adventure Engine
2
*
3
* ScummVM is the legal property of its developers, whose names
4
* are too numerous to list here. Please refer to the COPYRIGHT
5
* file distributed with this source distribution.
6
*
7
* This program is free software: you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation, either version 3 of the License, or
10
* (at your option) any later version.
11
*
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
16
*
17
* You should have received a copy of the GNU General Public License
18
* along with this program. If not, see <http://www.gnu.org/licenses/>.
19
*
20
*/
21
22
#ifndef SHERLOCK_SCALPEL_DARTS_H
23
#define SHERLOCK_SCALPEL_DARTS_H
24
25
#include "sherlock/image_file.h"
26
27
namespace
Sherlock
{
28
29
namespace
Scalpel {
30
31
class
ScalpelEngine;
32
33
class
Darts
{
34
private
:
35
ScalpelEngine
*_vm;
36
ImageFile
*_dartImages;
37
int
_dartScore1, _dartScore2;
38
int
_roundNumber;
39
int
_level;
40
int
_computerPlayer;
41
Common::String
_opponent;
42
bool
_playerDartMode;
43
int
_roundScore;
44
bool
_oldDartButtons;
45
49
void
loadDarts();
50
54
void
initDarts();
55
59
void
closeDarts();
60
64
void
showNames(
int
playerNum);
65
69
void
showStatus(
int
playerNum);
70
77
int
throwDart(
int
dartNum,
int
computer);
78
82
void
drawDartThrow(
const
Common::Point
&pt);
83
87
void
erasePowerBars();
88
94
int
doPowerBar(
const
Common::Point
&pt, byte color,
int
goToPower,
bool
isVertical);
95
99
int
dartHit();
100
104
int
dartScore(
const
Common::Point
&pt);
105
110
Common::Point
getComputerDartDest(
int
playerNum);
111
115
bool
findNumberOnBoard(
int
aim,
Common::Point
&pt);
116
public
:
117
Darts
(
ScalpelEngine
*vm);
118
122
void
playDarts
();
123
};
124
125
}
// End of namespace Scalpel
126
127
}
// End of namespace Sherlock
128
129
#endif
Sherlock::Scalpel::ScalpelEngine
Definition:
scalpel.h:50
Common::String
Definition:
str.h:59
Sherlock
Definition:
animation.h:29
Sherlock::Scalpel::Darts::playDarts
void playDarts()
Common::Point
Definition:
rect.h:45
Sherlock::Scalpel::Darts
Definition:
scalpel_darts.h:33
Sherlock::ImageFile
Definition:
image_file.h:78
engines
sherlock
scalpel
scalpel_darts.h
Generated on Thu Nov 14 2024 09:21:07 for ScummVM API documentation by
1.8.13