1 /***************************************************************************
2                           player.h  -  Base-class for players
3                              -------------------
4     begin                : Wed Dec 4 2002
5     copyright            : (C) 2002 by CJP
6     email                : cornware-cjp@users.sourceforge.net
7  ***************************************************************************/
8 
9 /***************************************************************************
10  *                                                                         *
11  *   This program is free software; you can redistribute it and/or modify  *
12  *   it under the terms of the GNU General Public License as published by  *
13  *   the Free Software Foundation; either version 2 of the License, or     *
14  *   (at your option) any later version.                                   *
15  *                                                                         *
16  ***************************************************************************/
17 
18 #ifndef PLAYER_H
19 #define PLAYER_H
20 
21 #include "world.h"
22 #include "message.h"
23 #include "cstring.h"
24 
25 /**
26   *@author CJP
27   */
28 
29 class CPlayer {
30 public:
31 	CPlayer();
32 	virtual ~CPlayer();
33 
update()34 	virtual bool update()
35 		{return true;} //default empty implementation
36 
37 	int m_MovingObjectId;
38 	int m_PlayerId;
39 
40 	CString m_Name;
41 protected:
42 	const CWorld *m_World;
43 
44 	int setAutomaticGear(float &gas, float &brake);
45 };
46 
47 #endif
48