ScummVM API documentation
base_surface_storage.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 /*
23  * This file is based on WME Lite.
24  * http://dead-code.org/redir.php?target=wmelite
25  * Copyright (c) 2011 Jan Nedoma
26  */
27 
28 #ifndef WINTERMUTE_BASE_SURFACE_STORAGE_H
29 #define WINTERMUTE_BASE_SURFACE_STORAGE_H
30 
31 #include "engines/wintermute/base/base.h"
32 #include "engines/wintermute/coll_templ.h"
33 
34 namespace Wintermute {
35 class BaseSurface;
36 class BaseSurfaceStorage : public BaseClass {
37 public:
38  uint32 _lastCleanupTime;
39  bool initLoop();
40  bool sortSurfaces();
41  static int surfaceSortCB(const void *arg1, const void *arg);
42  bool cleanup(bool warn = false);
43  //DECLARE_PERSISTENT(BaseSurfaceStorage, BaseClass);
44 
45  bool restoreAll();
46  BaseSurface *addSurface(const Common::String &filename, bool defaultCK = true, byte ckRed = 0, byte ckGreen = 0, byte ckBlue = 0, int lifeTime = -1, bool keepLoaded = false);
47  bool removeSurface(BaseSurface *surface);
49  ~BaseSurfaceStorage() override;
50 
51  BaseArray<BaseSurface *> _surfaces;
52 };
53 
54 } // End of namespace Wintermute
55 
56 #endif
Definition: base_game.h:76
Definition: str.h:59
Definition: base_surface.h:38
Definition: coll_templ.h:63
Definition: base_surface_storage.h:36
Definition: base.h:43
Definition: achievements_tables.h:27