ScummVM API documentation
moleculebin.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
* Additional copyright for this file:
8
* Copyright (C) 1995-1997 Presto Studios, Inc.
9
*
10
* This program is free software: you can redistribute it and/or modify
11
* it under the terms of the GNU General Public License as published by
12
* the Free Software Foundation, either version 3 of the License, or
13
* (at your option) any later version.
14
*
15
* This program is distributed in the hope that it will be useful,
16
* but WITHOUT ANY WARRANTY; without even the implied warranty of
17
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
* GNU General Public License for more details.
19
*
20
* You should have received a copy of the GNU General Public License
21
* along with this program. If not, see <http://www.gnu.org/licenses/>.
22
*
23
*/
24
25
#ifndef PEGASUS_NEIGHBORHOOD_WSC_MOLECULEBIN_H
26
#define PEGASUS_NEIGHBORHOOD_WSC_MOLECULEBIN_H
27
28
#include "pegasus/elements.h"
29
#include "pegasus/surface.h"
30
#include "pegasus/util.h"
31
32
namespace
Pegasus {
33
34
enum
{
35
kMolecule1,
36
kMolecule2,
37
kMolecule3,
38
kMolecule4,
39
kMolecule5,
40
kMolecule6
41
};
42
43
class
MoleculeBin
:
public
DisplayElement
{
44
public
:
45
MoleculeBin
();
46
~MoleculeBin
()
override
{}
47
48
void
initMoleculeBin();
49
void
cleanUpMoleculeBin();
50
51
void
setBinLayout(
const
uint32 *);
52
53
void
highlightMolecule(
const
uint32 whichMolecule);
54
void
selectMolecule(
const
int
whichMolecule);
55
void
resetBin();
56
57
bool
isMoleculeHighlighted(uint32);
58
59
protected
:
60
void
draw(
const
Common::Rect
&)
override
;
61
62
Surface
_binImages;
63
FlagsArray<byte, kMolecule6 + 1>
_moleculeFlags;
64
int
_selectedMolecule;
65
uint32 _binLayout[6];
66
uint32 _highlightColor;
67
};
68
69
}
// End of namespace Pegasus
70
71
#endif
Pegasus::DisplayElement
Definition:
elements.h:43
Pegasus::FlagsArray< byte, kMolecule6+1 >
Pegasus::MoleculeBin
Definition:
moleculebin.h:43
Pegasus::Surface
Definition:
surface.h:50
Common::Rect
Definition:
rect.h:536
engines
pegasus
neighborhood
wsc
moleculebin.h
Generated on Sun Nov 22 2026 09:29:53 for ScummVM API documentation by
1.9.4