[Scummvm-cvs-logs] CVS: scummvm/common timer.h,1.2,1.3
Pawe? Ko?odziejski
aquadran at users.sourceforge.net
Sat Aug 31 02:51:02 CEST 2002
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/common file.cpp,NONE,1.1 file.h,NONE,1.1
- Next message: [Scummvm-cvs-logs] CVS: scummvm/scumm bundle.cpp,1.2,1.3 bundle.h,1.1.1.1,1.2 sound.cpp,1.1,1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/scummvm/scummvm/common
In directory usw-pr-cvs1:/tmp/cvs-serv15139/common
Modified Files:
timer.h
Log Message:
changed Bundle to File class, cleanup
Index: timer.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/common/timer.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- timer.h 22 Aug 2002 10:43:50 -0000 1.2
+++ timer.h 31 Aug 2002 09:50:35 -0000 1.3
@@ -1,66 +1,68 @@
-/* ScummVM - Scumm Interpreter
- * Copyright (C) 2002 The ScummVM project
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- *
- * $Header$
- */
-
-#ifndef TIMER_H
-#define TIMER_H
-
-#include "scummsys.h"
-
-#define MAX_TIMERS 5
-
-typedef void (*TimerProc)(Scumm *);
-
-#ifdef __MORPHOS__
-#include "morphos_timer.h"
-#else
-
-class OSystem;
-
-class Timer {
-
-private:
- OSystem *_osystem;
- Scumm *_scumm;
- bool _initialized;
- bool _timerRunning;
- void *_timerHandler;
- int32 _thisTime;
- int32 _lastTime;
-
- struct TimerSlots {
- TimerProc procedure;
- int32 interval;
- int32 counter;
- } _timerSlots[MAX_TIMERS];
-
-public:
- Timer(Scumm *system);
- ~Timer();
-
- int handler(int *t);
- bool init();
- void release();
- bool installProcedure(TimerProc procedure, int32 interval);
- void releaseProcedure(TimerProc procedure);
-};
-
-#endif
-
-#endif
+/* ScummVM - Scumm Interpreter
+ * Copyright (C) 2002 The ScummVM project
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ * $Header$
+ */
+
+#ifndef TIMER_H
+#define TIMER_H
+
+#include "scummsys.h"
+
+#define MAX_TIMERS 5
+
+class Scumm;
+
+typedef void (*TimerProc)(Scumm *);
+
+#ifdef __MORPHOS__
+#include "morphos_timer.h"
+#else
+
+class OSystem;
+
+class Timer {
+
+private:
+ OSystem *_osystem;
+ Scumm *_scumm;
+ bool _initialized;
+ bool _timerRunning;
+ void *_timerHandler;
+ int32 _thisTime;
+ int32 _lastTime;
+
+ struct TimerSlots {
+ TimerProc procedure;
+ int32 interval;
+ int32 counter;
+ } _timerSlots[MAX_TIMERS];
+
+public:
+ Timer(Scumm *system);
+ ~Timer();
+
+ int handler(int *t);
+ bool init();
+ void release();
+ bool installProcedure(TimerProc procedure, int32 interval);
+ void releaseProcedure(TimerProc procedure);
+};
+
+#endif
+
+#endif
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/common file.cpp,NONE,1.1 file.h,NONE,1.1
- Next message: [Scummvm-cvs-logs] CVS: scummvm/scumm bundle.cpp,1.2,1.3 bundle.h,1.1.1.1,1.2 sound.cpp,1.1,1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Scummvm-git-logs
mailing list