[Scummvm-cvs-logs] CVS: scummvm/saga scene.h,1.25,1.26

Andrew Kurushin h00ligan at users.sourceforge.net
Tue Dec 28 13:35:01 CET 2004


Update of /cvsroot/scummvm/scummvm/saga
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10160

Modified Files:
	scene.h 
Log Message:
-addition to previous

Index: scene.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/saga/scene.h,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -d -r1.25 -r1.26
--- scene.h	24 Dec 2004 20:44:39 -0000	1.25
+++ scene.h	28 Dec 2004 21:33:46 -0000	1.26
@@ -31,6 +31,8 @@
 
 namespace Saga {
 
+#define SCENE_DOORS_MAX 16
+
 class ActionMap;
 class ObjectMap;
 
@@ -228,8 +230,18 @@
 	int queueScene(SCENE_QUEUE *scene_queue);
 	int draw(SURFACE *);
 	int getMode();
-	int getBGMaskInfo(int *w, int *h, byte **buf, size_t *buf_len);
-	int isBGMaskPresent(void);
+	
+	void getBGMaskInfo(int &width, int &height, byte *&buffer, size_t &bufferLength);
+	int isBGMaskPresent() {
+		return _bgMask.loaded;
+	}
+	int getBGMaskType(const Point &testPoint);
+	bool canWalk(const Point &testPoint);
+	bool offscreenPath(Point &testPoint);
+
+	void setDoorState(int doorNumber, int doorState);
+	int getDoorState(int doorNumber);
+
 	int getBGInfo(SCENE_BGINFO *bginfo);
 	int getBGPal(PALENTRY **pal);
 	int getInfo(SCENE_INFO *si);
@@ -276,6 +288,7 @@
 	TEXTLIST *_textList;
 	SCENE_IMAGE _bg;
 	SCENE_IMAGE _bgMask;
+	int _sceneDoors[SCENE_DOORS_MAX];
 
 	static int SC_defaultScene(int param, SCENE_INFO *scene_info, void *refCon);
 	int defaultScene(int param, SCENE_INFO *scene_info);





More information about the Scummvm-git-logs mailing list