Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | Related Pages

movementmanager.h

00001 /***************************************************************************
00002                             movementmanager.h  -  description
00003                                 -------------------
00004     begin                : dim mai 16 2004
00005     copyright            : (C) 2004-2006 by Duong-Khang NGUYEN
00006     email                : neoneurone @ users sourceforge net
00007     
00008     $Id: movementmanager.h 41 2006-09-10 11:43:28Z neoneurone $
00009  ***************************************************************************/
00010 
00011 /***************************************************************************
00012  *                                                                         *
00013  *   This program is free software; you can redistribute it and/or modify  *
00014  *   it under the terms of the GNU General Public License as published by  *
00015  *   the Free Software Foundation; either version 2 of the License, or     *
00016  *   any later version.                                                    *
00017  *                                                                         *
00018  ***************************************************************************/
00019 
00020 #ifndef _OPENCITY_MOVEMENTMANAGER_H_
00021 #define _OPENCITY_MOVEMENTMANAGER_H_ 1
00022 
00023 #include "main.h"
00024 
00025     #define OC_MOVEMENT_MAX     100
00026 
00027 using std::vector;
00028 
00029 class Movement;
00030 class GraphicManager;
00031 class Map;
00032 
00033 
00034 //========================================================================
00037 class MovementManager {
00038 public:
00039     MovementManager(
00040         const GraphicManager* gm,
00041         const Map* map
00042     );
00043     ~MovementManager();
00044 
00045     const int
00046     Add(
00047         Movement* const pNew );
00048 
00049 
00050 //========================================================================
00054     void
00055     Remove(
00056         const int ciIndex = -1);
00057 
00058 
00059 //========================================================================
00064     void
00065     Move(
00066         const int ciIndex = -1 );
00067 
00068     void
00069     Display(
00070         const int ciIndex = - 1 );
00071 
00072 
00073 private:
00074     Movement* tabmvt [OC_MOVEMENT_MAX];
00075     const GraphicManager* pcGraphicMgr;
00076     const Map* pcMap;
00077 };
00078 #endif
00079 
00080 
00081 
00082 
00083 
00084 
00085 
00086 
00087 
00088 
00089 
00090 
00091 
00092 
00093 
00094 
00095 
00096 
00097 
00098 
00099 
00100 
00101 
00102 
00103 
00104 
00105 
00106 
00107 
00108 
00109 
00110 
00111 
00112 
00113 
00114 

Generated on Sat Nov 11 10:21:10 2006 for OpenCity by  doxygen 1.4.2