File: gameclock.h

package info (click to toggle)
openssn 1.4-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 7,340 kB
  • sloc: cpp: 10,973; makefile: 80
file content (41 lines) | stat: -rw-r--r-- 1,405 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/***************************************************************************
                          gameclock.h  -  description
                             -------------------
    begin                : Sun May 18 19:17:34 2003
    copyright            : (C) 2003 Michael Bridak
    email                : michael.bridak@verizon.net
$Id: gameclock.h,v 1.2 2003/05/20 17:36:04 mbridak Exp $
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   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.     *
 *    .                                   *
 *                                                                         *
 ***************************************************************************/
 
#ifndef _GAMECLOCK_H_
#define _GAMECLOCK_H_


class GameClock
{
	public:
		GameClock();
		 ~GameClock();
		void InitTime(int hours, int minutes, int seconds);
		void UpdateTime();
		void GetTime(int &hours, int &minutes, int &seconds);
		int GetTick();	
	private:
		int hours;
		int minutes;
		int seconds;
		int ticks;
};


#endif	//_GAMECLOCK_H_