regcom-commits Mailing List for Regimental Command (Page 16)
Status: Pre-Alpha
Brought to you by:
rjrelander
You can subscribe to this list here.
| 2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(7) |
Jul
(6) |
Aug
(32) |
Sep
|
Oct
|
Nov
|
Dec
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(7) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2003 |
Jan
(16) |
Feb
(149) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2007 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(61) |
Sep
(43) |
Oct
(2) |
Nov
|
Dec
(2) |
| 2008 |
Jan
(1) |
Feb
(5) |
Mar
(34) |
Apr
(21) |
May
(14) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Randi J. R. <rjr...@us...> - 2001-08-12 23:01:41
|
Update of /cvsroot/regcom/regcom/VisualC In directory usw-pr-cvs1:/tmp/cvs-serv29775/VisualC Log Message: Directory /cvsroot/regcom/regcom/VisualC added to the repository |
|
From: Randi J. R. <rjr...@us...> - 2001-08-12 22:59:52
|
Update of /cvsroot/regcom/regcom/src
In directory usw-pr-cvs1:/tmp/cvs-serv29350
Modified Files:
Surface.cpp
Log Message:
(Load) Modified to search alternative data paths.
Index: Surface.cpp
===================================================================
RCS file: /cvsroot/regcom/regcom/src/Surface.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** Surface.cpp 2001/07/06 23:01:48 1.4
--- Surface.cpp 2001/08/12 22:59:49 1.5
***************
*** 28,35 ****
#include "Surface.h"
- #ifndef GAME_DATADIR
- #define GAME_DATADIR "data"
- #endif
-
#define IMAGE_SUB "images"
--- 28,31 ----
***************
*** 79,87 ****
//----------------------------------------------------------------------
! int Surface::Load(const char* name)
{
! if (m_surface) SDL_FreeSurface(m_surface);
!
! long size = strlen(GAME_DATADIR) + strlen(PATH_SEP) +
strlen(IMAGE_SUB) + strlen(PATH_SEP) + strlen(name) + 1;
--- 75,81 ----
//----------------------------------------------------------------------
! int Surface::Load(const char* path, const char* name)
{
! long size = strlen(path) + strlen(PATH_SEP) +
strlen(IMAGE_SUB) + strlen(PATH_SEP) + strlen(name) + 1;
***************
*** 89,104 ****
sprintf(buffer,"%s%s%s%s%s",
! GAME_DATADIR,PATH_SEP,IMAGE_SUB,PATH_SEP,name);
m_surface = SDL_LoadBMP(buffer);
if (m_surface == NULL) {
! fprintf(stderr, "SDL_LoadBMP: %s\n",SDL_GetError());
exit(-1);
}
! delete [] buffer;
!
! return 0;
}
--- 83,128 ----
sprintf(buffer,"%s%s%s%s%s",
! path,PATH_SEP,IMAGE_SUB,PATH_SEP,name);
m_surface = SDL_LoadBMP(buffer);
+ delete [] buffer;
+
+ if (m_surface == NULL) return -1;
+
+ return 0;
+ }
+
+ //----------------------------------------------------------------------
+ // FUNCTION: Surface::Load
+ //----------------------------------------------------------------------
+
+ int Surface::Load(const char* name)
+ {
+ if (m_surface) SDL_FreeSurface(m_surface);
+
+ #ifdef GAME_DATADIR
+
+ if (Load(GAME_DATADIR,name) == 0) return 0;
+
+ #else
+
+ if (Load("data",name) == 0) return 0;
+
+ #ifndef macintosh
+
+ if (Load("../data",name) == 0) return 0;
+ if (Load("../../data",name) == 0) return 0;
+
+ #endif
+
+ #endif
+
if (m_surface == NULL) {
! fprintf(stderr, "Surface_Load: could not load '%s'\n",name);
exit(-1);
}
! return -1;
}
|
|
From: Randi J. R. <rjr...@us...> - 2001-08-12 22:59:02
|
Update of /cvsroot/regcom/regcom/src In directory usw-pr-cvs1:/tmp/cvs-serv29224 Modified Files: Surface.h Log Message: (Load) Added path/name overload. Index: Surface.h =================================================================== RCS file: /cvsroot/regcom/regcom/src/Surface.h,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** Surface.h 2001/07/06 23:01:48 1.4 --- Surface.h 2001/08/12 22:58:59 1.5 *************** *** 42,45 **** --- 42,46 ---- int Create(int w, int h); + int Load(const char* path, const char* name); int Load(const char* name); int SetColorKey(int r, int g, int b); |
|
From: Randi J. R. <rjr...@us...> - 2001-08-12 22:58:01
|
Update of /cvsroot/regcom/regcom In directory usw-pr-cvs1:/tmp/cvs-serv29048 Removed Files: regcom.dsw regcom.dsp Log Message: Removed. --- regcom.dsw DELETED --- --- regcom.dsp DELETED --- |
|
From: Randi J. R. <rjr...@us...> - 2001-08-11 03:02:16
|
Update of /cvsroot/regcom/regcom/src
In directory usw-pr-cvs1:/tmp/cvs-serv6890
Added Files:
Client.h LocalClient.h LocalServer.h
Log Message:
New file.
--- NEW FILE: Client.h ---
//**********************************************************************
//
// REGCOM: Regimental Command
// Copyright (C) 1997-2001 Randi J. Relander
// <rjr...@us...>
//
// 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.
//
//**********************************************************************
#ifndef CLIENT_H
#define CLIENT_H
class Client
{
public:
Client();
virtual ~Client();
};
#endif
--- NEW FILE: LocalClient.h ---
//**********************************************************************
//
// REGCOM: Regimental Command
// Copyright (C) 1997-2001 Randi J. Relander
// <rjr...@us...>
//
// 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.
//
//**********************************************************************
#ifndef LOCALCLIENT_H
#define LOCALCLIENT_H
#include "Client.h"
class Server;
class LocalClient : public Client
{
private:
Server* m_server;
public:
LocalClient();
virtual ~LocalClient();
};
#endif
--- NEW FILE: LocalServer.h ---
//**********************************************************************
//
// REGCOM: Regimental Command
// Copyright (C) 1997-2001 Randi J. Relander
// <rjr...@us...>
//
// 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.
//
//**********************************************************************
#ifndef LOCALSERVER_H
#define LOCALSERVER_H
#include "Server.h"
#include <list>
class Client;
class LocalServer : public Server
{
private:
std::list<Client*> m_clients;
public:
LocalServer();
virtual ~LocalServer();
};
#endif
|
|
From: Randi J. R. <rjr...@us...> - 2001-08-11 03:02:15
|
Update of /cvsroot/regcom/regcom/src
In directory usw-pr-cvs1:/tmp/cvs-serv7004
Added Files:
RemoteClient.h RemoteServer.h Server.h
Log Message:
New file.
--- NEW FILE: RemoteClient.h ---
//**********************************************************************
//
// REGCOM: Regimental Command
// Copyright (C) 1997-2001 Randi J. Relander
// <rjr...@us...>
//
// 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.
//
//**********************************************************************
#ifndef REMOTECLIENT_H
#define REMOTECLIENT_H
#include "Client.h"
class RemoteClient : public Client
{
public:
RemoteClient();
virtual ~RemoteClient();
};
#endif
--- NEW FILE: RemoteServer.h ---
//**********************************************************************
//
// REGCOM: Regimental Command
// Copyright (C) 1997-2001 Randi J. Relander
// <rjr...@us...>
//
// 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.
//
//**********************************************************************
#ifndef REMOTESERVER_H
#define REMOTESERVER_H
#include "Server.h"
class RemoteServer : public Server
{
public:
RemoteServer();
virtual ~RemoteServer();
};
#endif
--- NEW FILE: Server.h ---
//**********************************************************************
//
// REGCOM: Regimental Command
// Copyright (C) 1997-2001 Randi J. Relander
// <rjr...@us...>
//
// 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.
//
//**********************************************************************
#ifndef SERVER_H
#define SERVER_H
class Server
{
public:
Server();
virtual ~Server();
};
#endif
|
|
From: Randi J. R. <rjr...@us...> - 2001-08-11 03:02:13
|
Update of /cvsroot/regcom/regcom/src In directory usw-pr-cvs1:/tmp/cvs-serv7053 Modified Files: Game.cpp Log Message: Included client and server headers. Index: Game.cpp =================================================================== RCS file: /cvsroot/regcom/regcom/src/Game.cpp,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -r1.7 -r1.8 *** Game.cpp 2001/07/06 23:05:04 1.7 --- Game.cpp 2001/08/11 02:43:38 1.8 *************** *** 39,42 **** --- 39,47 ---- #include "Desktop.h" + #include "LocalClient.h" + #include "LocalServer.h" + #include "RemoteClient.h" + #include "RemoteServer.h" + #define MAP_WIDTH 256 #define MAP_HEIGHT 256 |
|
From: Randi J. R. <rjr...@us...> - 2001-08-11 03:02:10
|
Update of /cvsroot/regcom/regcom In directory usw-pr-cvs1:/tmp/cvs-serv7205 Modified Files: regcom.dsp Log Message: Added new files. Index: regcom.dsp =================================================================== RCS file: /cvsroot/regcom/regcom/regcom.dsp,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -r1.10 -r1.11 *** regcom.dsp 2001/06/06 04:38:37 1.10 --- regcom.dsp 2001/08/11 02:44:07 1.11 *************** *** 182,185 **** --- 182,189 ---- # Begin Source File + SOURCE=.\src\Client.h + # End Source File + # Begin Source File + SOURCE=.\src\Console.h # End Source File *************** *** 210,213 **** --- 214,225 ---- # Begin Source File + SOURCE=.\src\LocalClient.h + # End Source File + # Begin Source File + + SOURCE=.\src\LocalServer.h + # End Source File + # Begin Source File + SOURCE=.\src\Map.h # End Source File *************** *** 230,233 **** --- 242,253 ---- # Begin Source File + SOURCE=.\src\RemoteClient.h + # End Source File + # Begin Source File + + SOURCE=.\src\RemoteServer.h + # End Source File + # Begin Source File + SOURCE=.\src\Screen.h # End Source File *************** *** 235,238 **** --- 255,262 ---- SOURCE=.\src\ScrollView.h + # End Source File + # Begin Source File + + SOURCE=.\src\Server.h # End Source File # Begin Source File |
|
From: Randi J. R. <rjr...@us...> - 2001-08-11 02:53:59
|
Update of /cvsroot/regcom/regcom/src In directory usw-pr-cvs1:/tmp/cvs-serv8436 Modified Files: Makefile.am Log Message: (regcom_SOURCES): Added new files. Index: Makefile.am =================================================================== RCS file: /cvsroot/regcom/regcom/src/Makefile.am,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -r1.11 -r1.12 *** Makefile.am 2001/06/06 04:38:17 1.11 --- Makefile.am 2001/08/11 02:50:33 1.12 *************** *** 47,49 **** Tile.cpp Tile.h \ Unit.cpp Unit.h \ ! Window.cpp Window.h\ --- 47,52 ---- Tile.cpp Tile.h \ Unit.cpp Unit.h \ ! Window.cpp Window.h \ ! Client.h Server.h \ ! RemoteClient.h RemoteServer.h \ ! LocalClient.h LocalServer.h |
|
From: Randi J. R. <rjr...@us...> - 2001-08-11 02:53:51
|
Update of /cvsroot/regcom/regcom
In directory usw-pr-cvs1:/tmp/cvs-serv8759
Modified Files:
ChangeLog
Log Message:
Updated.
Index: ChangeLog
===================================================================
RCS file: /cvsroot/regcom/regcom/ChangeLog,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -r1.17 -r1.18
*** ChangeLog 2001/06/07 05:26:52 1.17
--- ChangeLog 2001/08/11 02:52:39 1.18
***************
*** 1,84 ****
2001-06-06 Randi J. Relander
! * src/Game.cpp: (PollEvents) Modified to process
! only one event at a time and toss extra mouse motion
! events.
! * src/ScrollView.cpp: (UpdateRect) Fixed window
! invalidation.
! * src/Desktop.h: (DESKTOP_MAXDIRTY) Changed to 200.
! * src/Desktop.cpp: (Invalidate) Added combining of
! overlapping dirty rectangles.
! * src/MapView.cpp: (RefreshTile) Fixed compiler warning.
* NEWS: Updated.
! * docs/KeyboardCommands.html:
! * docs/Classes.html:
! * docs/CommandLine.html: Updated.
!
! * configure.in: (REGCOM_VERSION) Changed version to 0.0.4.
! (SDL_VERSION) Changed required SDL version to 1.2.0.
! * src/main.cpp: (VERSION) Changed version to 0.0.4.
! * src/main.cpp: (help_text, parse_options) Removed
! --hwsurface, --hwpalette, and --doublebuf options.
2001-06-05 Randi J. Relander
! * data/images/console.bmp: Made all non-frame pixels
! transparent.
!
! * regcom.dsp:
! * src/makefile.am: Added new files.
! * src/StringView.h:
! * src/StringView.cpp: Added.
! * src/Window.h:
! * src/Window.cpp:
! * src/Surface.cpp:
! * src/ScrollView.h:
! * src/ScrollView.cpp:
! * src/Screen.h:
! * src/Screen.cpp:
! * src/Rect.h:
! * src/Rect.cpp:
! * src/RadarView.h:
! * src/RadarView.cpp:
! * src/MapView.h:
! * src/MapView.cpp:
! * src/Game.h:
! * src/Game.cpp:
! * src/Font.cpp:
! * src/Desktop.h:
! * src/Desktop.cpp:
! * src/Cursor.h:
! * src/Cursor.cpp:
! * src/Console.h:
! * src/Console.cpp:
! * src/Button.h:
! * src/Button.cpp: Modified for dirty rectangle support.
2001-05-26 Randi J. Relander
* src/makefile.am: Removed File object.
! * src/File.cpp: Deleted.
! * src/File.h: Deleted.
! * src/Map.cpp: Removed Save and Load functions.
! * src/Map.h: Removed Save and Load functions.
* src/makefile.am: Removed Palette and Color objects.
! * src/Color.h: Deleted.
! * src/Palette.h: Deleted.
! * src/Console.cpp: Removed Palette and Color objects.
! * src/Cursor.cpp: Removed Palette and Color objects.
! * src/Game.cpp: Removed Palette and Color objects.
! * src/MapView.cpp: Removed Palette and Color objects.
! * src/RadarView.cpp: Removed Palette and Color objects.
! * src/Screen.cpp: Removed Palette and Color objects.
! * src/ScrollView.cpp: Removed Palette and Color objects.
! * src/Surface.cpp: Removed Palette and Color objects.
* src/Rect.h: Removed SDL_Rect dependency.
--- 1,109 ----
+ 2001-08-10 Randi J. Relander
+
+ * src/Server.h, src/LocalServer.h, src/RemoteServer.h,
+ src/Client.h, src/LocalClient.h, src/RemoteClient.h: New file.
+ * regcom.dsp: Added new files.
+ * src/Makefile.am (regcom_SOURCES): Added new files.
+
+ 2001-08-09 Randi J. Relander
+
+ * src/Unit.h, src/Unit.cpp: (m_next) removed. (m_id, m_map)
+ (m_xpos, m_ypos) Made private.
+ * src/Tile.h src/Tile.cpp: (m_unit_list) Removed. (m_units)
+ Added as an STL list.
+
+ 2001-07-06 Randi J. Relander
+
+ * src/StringView.h (Contains): Added.
+
+ * src/Game.cpp, src/Console.h: Updated to work with changes in
+ MapView and RadarView.
+ * src/RadarView.h, src/RadarView.cpp, src/MapView.h,
+ src/MapView.cpp: (m_map, SetMap) Removed. (ScanMap) Added map
+ argument.
+
+ * src/Map.h, src/Map.cpp (ArrayToHex, HexToArray): Moved from
+ Map to MapView.
+
+ * src/Surface.h, src/Surface.cpp (Width, Height, Depth, Pitch)
+ (Pixels): Moved from header to source and added check for NULL
+ surface pointer.
+
+ * docs/regcom.dox: (HAVE_DOT) Set to YES.
+
+ 2001-06-22 Randi J. Relander
+
+ * docs/Makefile.am: Updated to reflect file adds and removes.
+
+ * docs/regcom.dox, docs/header.html, docs/footer.html,
+ docs/doxygen.css, docs/gendox.bat: Added doxygen files.
+
+ * docs/index.html: Moved usage links to index page.
+
+ * docs/mouse.html, docs/keyboard.html, docs/command.html: Removed
+ link to usage.html.
+
+ 2001-06-21 Randi J. Relander
+
+ * docs/command.html, docs/keyboard.html, docs/mouse.html: Updated
+ and changed to lowercase filenames.
+
+ * docs/Classes.html, docs/CommandLine.html, docs/Development.html,
+ docs/KeyboardCommands.html, docs/MouseUsage.html, docs/Usage.html:
+ Removed
+
2001-06-06 Randi J. Relander
! * src/Game.cpp (PollEvents): Modified to process only one event at
! a time and toss extra mouse motion events.
! * src/ScrollView.cpp (UpdateRect): Fixed window invalidation.
! * src/Desktop.h (DESKTOP_MAXDIRTY): Changed to 200.
! * src/Desktop.cpp (Invalidate): Added combining of overlapping
! dirty rectangles.
! * src/MapView.cpp (RefreshTile): Fixed compiler warning.
* NEWS: Updated.
+
+ * docs/KeyboardCommands.html, docs/Classes.html,
+ docs/CommandLine.html: Updated.
! * configure.in (REGCOM_VERSION): Changed version to 0.0.4.
! (SDL_VERSION): Changed required SDL version to 1.2.0.
! * src/main.cpp (VERSION): Changed version to 0.0.4.
! * src/main.cpp (help_text, parse_options): Removed --hwsurface,
! --hwpalette, and --doublebuf options.
2001-06-05 Randi J. Relander
! * data/images/console.bmp: Made all non-frame pixels transparent.
! * regcom.dsp: Added new files.
! * src/Makefile.am (regcom_SOURCES): Added new files.
! * src/StringView.h, src/StringView.cpp: Added.
! * src/Window.h, src/Window.cpp, src/Surface.cpp, src/ScrollView.h,
! src/ScrollView.cpp, src/Screen.h, src/Screen.cpp, src/Rect.h,
! src/Rect.cpp, src/RadarView.h, src/RadarView.cpp, src/MapView.h,
! src/MapView.cpp, src/Game.h, src/Game.cpp, src/Font.cpp,
! src/Desktop.h, src/Desktop.cpp, src/Cursor.h, src/Cursor.cpp,
! src/Console.h, src/Console.cpp, src/Button.h, src/Button.cpp:
! Modified for dirty rectangle support.
2001-05-26 Randi J. Relander
* src/makefile.am: Removed File object.
! * src/File.cpp, src/File.h: Deleted.
!
! * src/Map.cpp, src/Map.h: Removed Save and Load functions.
* src/makefile.am: Removed Palette and Color objects.
! * src/Color.h, src/Palette.h: Deleted.
!
! * src/Console.cpp, src/Cursor.cpp, src/Game.cpp, src/MapView.cpp,
! src/RadarView.cpp, src/Screen.cpp, src/ScrollView.cpp,
! src/Surface.cpp: Removed Palette and Color objects.
* src/Rect.h: Removed SDL_Rect dependency.
***************
*** 88,97 ****
* regcom.dsp: Added new files.
* src/Makefile.am (regcom_SOURCES): Added new files.
! * src/File.cpp: New files.
! * src/File.h: New files.
! * src/Tile.h: (GetTrees) Added.
! * src/Map.cpp: (Save, Load) Added.
! * src/Map.h: (Save, Load) Added.
2001-03-22 Randi J. Relander
--- 113,120 ----
* regcom.dsp: Added new files.
* src/Makefile.am (regcom_SOURCES): Added new files.
+ * src/File.cpp, src/File.h: New file.
! * src/Tile.h (GetTrees): Added.
! * src/Map.cpp, src/Map.h (Save, Load): Added.
2001-03-22 Randi J. Relander
***************
*** 99,128 ****
* data/images/Makefile.am: Updated.
! * data/images/Button1.bmp: Removed for now.
! * data/images/Button2.bmp: Removed for now.
! * data/images/Button3.bmp: Removed for now.
! * data/images/Button4.bmp: Removed for now.
! * data/images/Logo.bmp: Removed for now.
!
! * docs/Classes.html: Updated.
! * src/Makefile.am: Updated.
! * regcom.dsp: Updated.
- * src/SplashScreen.cpp: Removed for now.
- * src/SplashScreen.h: Removed for now.
- * src/MapEditor.cpp: Removed for now.
- * src/MapEditor.h: Removed for now.
- * src/Scenario.cpp: Removed for now.
- * src/Scenario.h: Removed for now.
- * src/ScenarioEditor.cpp: Removed for now.
- * src/ScenarioEditor.h: Removed for now.
- * src/MainMenu.cpp: Removed for now.
- * src/MainMenu.h: Removed for now.
-
2001-03-20 Randi J. Relander
! * src/Game.h: Enumerated hardcoded user events.
! * src/Game.cpp: Enumerated hardcoded user events.
! * src/Console.cpp: Enumerated hardcoded user events.
2001-03-18 Randi J. Relander
--- 122,140 ----
* data/images/Makefile.am: Updated.
! * data/images/Button1.bmp, data/images/Button2.bmp,
! data/images/Button3.bmp, data/images/Button4.bmp,
! data/images/Logo.bmp: Removed for now.
!
! * docs/Classes.html, src/Makefile.am, regcom.dsp: Updated.
!
! * src/SplashScreen.cpp, src/SplashScreen.h, src/MapEditor.cpp,
! src/MapEditor.h, src/Scenario.cpp, src/Scenario.h,
! src/ScenarioEditor.cpp, src/ScenarioEditor.h, src/MainMenu.cpp,
! src/MainMenu.h: Removed for now.
2001-03-20 Randi J. Relander
! * src/Game.h, src/Game.cpp, src/Console.cpp: Enumerated hardcoded
! user events.
2001-03-18 Randi J. Relander
***************
*** 133,155 ****
2001-03-16 Randi J. Relander
! * src/BattleMech.cpp: Removed for now.
! * src/BattleMech.h: Removed for now.
! * src/Vehicle.cpp: Removed for now.
! * src/Vehicle.h: Removed for now.
! * src/InfantryUnit.cpp: Removed for now.
! * src/InfantryUnit.h: Removed for now.
! * src/MechWarrior.cpp: Removed for now.
! * src/MechWarrior.h: Removed for now.
2000-12-18 Randi J. Relander
! * src/BattleMech.h: (BattleMech, BattleMechType):
! Added new attributes.
- * src/Makefile.am: Added new files.
* regcom.dsp: Added new files.
!
! * src/MechWarrior.cpp: New file.
! * src/MechWarrior.h: New file.
2000-12-15 Randi J. Relander
--- 145,160 ----
2001-03-16 Randi J. Relander
! * src/BattleMech.cpp, src/BattleMech.h, src/Vehicle.cpp,
! src/Vehicle.h, src/InfantryUnit.cpp, src/InfantryUnit.h,
! src/MechWarrior.cpp, src/MechWarrior.h: Removed for now.
2000-12-18 Randi J. Relander
! * src/BattleMech.h (BattleMech, BattleMechType): Added new
! attributes.
* regcom.dsp: Added new files.
! * src/Makefile.am (regcom_SOURCES): Added new files.
! * src/MechWarrior.cpp, src/MechWarrior.h: New file.
2000-12-15 Randi J. Relander
***************
*** 157,258 ****
* docs/Classes.html: Updated.
- * src/Makefile.am: Added new files.
* regcom.dsp: Added new files.
!
! * src/BattleMech.cpp: New file.
! * src/BattleMech.h: New file.
! * src/Vehicle.cpp: New file.
! * src/Vehicle.h: New file.
! * src/InfantryUnit.cpp: New file.
! * src/InfantryUnit.h: New file.
2000-11-22 Randi J. Relander
! * src/Map.cpp: Added documentation and comments.
! * src/Hex.cpp: Added documentation and comments.
2000-10-25 Randi J. Relander
! * docs/CommandLine.html: Updated.
! * docs/Classes.html: Updated.
! * src/MapView.cpp: (TileInfo) Removed structure name.
! * src/Main.cpp: (Options) Removed structure name.
! * src/Console.cpp: (_ButtonData) Removed structure name.
2000-10-23 Randi J. Relander
! * regcom.dsp: Switched to "Multithreaded DLL" run-time library
! for use with SDL-1.1.6.
2000-09-08 Randi J. Relander
* src/Button.cpp: (Load) New function. (Button) Always create new
! images. (~Button) Always delete images.
* src/Button.h: (Load): New function.
* data/images/Makefile.am (EXTRA_DIST) Added new files.
! * data/images/Button1.bmp: New file.
! * data/images/Button2.bmp: New file.
! * data/images/Button3.bmp: New file.
! * data/images/Button4.bmp: New file.
! * data/images/Logo.bmp: New file.
- * docs/Makefile.am (EXTRA_DIST): Added new files.
* docs/index.html: Updated.
! * docs/Usage.html: New file.
! * docs/CommandLine.html: New file.
! * docs/KeyboardCommands.html: New file.
! * docs/MouseUsage.html: New file.
! * docs/Development.html: New file.
! * docs/Classes.html: New file.
! * docs/UseCases.html: New file.
* regcom.dsp: Added new files.
* src/Makefile.am (regcom_SOURCES): Added new files.
! * src/MapEditor.cpp: New file.
! * src/MapEditor.h: New file.
! * src/Scenario.cpp: New file.
! * src/Scenario.h: New file.
! * src/ScenarioEditor.cpp: New file.
! * src/ScenarioEditor.h: New file.
! * src/MainMenu.cpp: New file.
! * src/MainMenu.h: New file.
2000-09-07 Randi J. Relander
* src/Unit.h: (m_type, m_state, m_height, m_facing, m_prev)
! (m_stack_prev, m_stack_next): Removed.
! (PlaceOnMap, RemoveFromMap, MoveTo) New functions.
! * src/Unit.cpp: (Unit) Updated constructor.
! (PlaceOnMap, RemoveFromMap, MoveTo) New functions.
* src/Map.cpp (Clear, FractalCreate): Replaced overloaded Tile
! constructors.
! * src/Tile.h (Tile): Removed overloaded constructor.
! (Clear, SetLevel, SetDepth, SetTrees, AddUnit, RemoveUnit):
! New functions.
* src/Tile.cpp (AddUnit, RemoveUnit): New functions.
2000-09-01 Randi J. Relander
! * src/MapView.cpp: Added unit tile loading.
! * src/MapView.h: Added unit tile loading.
* data/images/Makefile.am (EXTRA_DIST): Added new files.
! * data/images/Unit24.bmp: New file.
! * data/images/Unit42.bmp: New file.
! * data/images/Unit72.bmp: New file.
2000-08-31 Randi J. Relander
* src/Tile.h: Added m_unit_list pointer. Moved constructors and
! destructors to Tile.cpp.
* regcom.dsp: Added new files.
* src/Makefile.am (regcom_SOURCES): Added new files.
! * src/Tile.cpp: New file.
! * src/Unit.cpp: New file.
! * src/Unit.h: New file.
2000-08-23 Randi J. Relander
--- 162,241 ----
* docs/Classes.html: Updated.
* regcom.dsp: Added new files.
! * src/Makefile.am (regcom_SOURCES): Added new files.
! * src/BattleMech.cpp, src/BattleMech.h, src/Vehicle.cpp,
! src/Vehicle.h, src/InfantryUnit.cpp, src/InfantryUnit.h: New file.
2000-11-22 Randi J. Relander
! * src/Map.cpp, src/Hex.cpp: Added documentation and comments.
2000-10-25 Randi J. Relander
! * docs/CommandLine.html, docs/Classes.html: Updated.
! * src/MapView.cpp (TileInfo): Removed structure name.
! * src/Main.cpp (Options): Removed structure name.
! * src/Console.cpp (_ButtonData): Removed structure name.
2000-10-23 Randi J. Relander
! * regcom.dsp: Switched to "Multithreaded DLL" run-time library for
! use with SDL-1.1.6.
2000-09-08 Randi J. Relander
* src/Button.cpp: (Load) New function. (Button) Always create new
! images. (~Button) Always delete images.
* src/Button.h: (Load): New function.
* data/images/Makefile.am (EXTRA_DIST) Added new files.
! * data/images/Button1.bmp, data/images/Button2.bmp,
! data/images/Button3.bmp, data/images/Button4.bmp,
! data/images/Logo.bmp: New file.
* docs/index.html: Updated.
!
! * docs/Makefile.am (EXTRA_DIST): Added new files.
! * docs/Usage.html, docs/CommandLine.html, docs/Classes.html,
! docs/KeyboardCommands.html, docs/MouseUsage.html,
! docs/Development.html, docs/UseCases.html: New file.
* regcom.dsp: Added new files.
* src/Makefile.am (regcom_SOURCES): Added new files.
! * src/MapEditor.cpp, src/MapEditor.h, src/Scenario.cpp,
! src/Scenario.h, src/ScenarioEditor.cpp, src/ScenarioEditor.h,
! src/MainMenu.cpp, src/MainMenu.h: New file.
2000-09-07 Randi J. Relander
* src/Unit.h: (m_type, m_state, m_height, m_facing, m_prev)
! (m_stack_prev, m_stack_next): Removed. (PlaceOnMap, RemoveFromMap)
! (MoveTo) New functions.
! * src/Unit.cpp: (Unit) Updated constructor. (PlaceOnMap)
! (RemoveFromMap, MoveTo) New functions.
* src/Map.cpp (Clear, FractalCreate): Replaced overloaded Tile
! constructors.
! * src/Tile.h (Tile): Removed overloaded constructor. (Clear)
! (SetLevel, SetDepth, SetTrees, AddUnit, RemoveUnit): New functions.
* src/Tile.cpp (AddUnit, RemoveUnit): New functions.
2000-09-01 Randi J. Relander
! * src/MapView.cpp, src/MapView.h: Added unit tile loading.
* data/images/Makefile.am (EXTRA_DIST): Added new files.
! * data/images/Unit24.bmp, data/images/Unit42.bmp,
! data/images/Unit72.bmp: New file.
2000-08-31 Randi J. Relander
* src/Tile.h: Added m_unit_list pointer. Moved constructors and
! destructors to Tile.cpp.
* regcom.dsp: Added new files.
* src/Makefile.am (regcom_SOURCES): Added new files.
! * src/Tile.cpp, src/Unit.cpp, src/Unit.h: New file.
2000-08-23 Randi J. Relander
|
|
From: Randi J. R. <rjr...@us...> - 2001-08-10 00:42:18
|
Update of /cvsroot/regcom/regcom/src
In directory usw-pr-cvs1:/tmp/cvs-serv21663
Modified Files:
Tile.h Tile.cpp
Log Message:
(m_unit_list) Removed.
(m_units) Added as an STL list.
Index: Tile.h
===================================================================
RCS file: /cvsroot/regcom/regcom/src/Tile.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** Tile.h 2001/03/27 04:48:25 1.5
--- Tile.h 2001/08/10 00:42:16 1.6
***************
*** 25,28 ****
--- 25,30 ----
#define TILE_H
+ #include <list>
+
class Unit;
***************
*** 35,39 ****
signed char m_trees;
! Unit* m_unit_list;
public:
--- 37,41 ----
signed char m_trees;
! std::list<Unit*> m_units;
public:
Index: Tile.cpp
===================================================================
RCS file: /cvsroot/regcom/regcom/src/Tile.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** Tile.cpp 2001/03/19 01:03:36 1.3
--- Tile.cpp 2001/08/10 00:42:16 1.4
***************
*** 37,42 ****
m_depth = 0;
m_trees = 0;
-
- m_unit_list = NULL;
}
--- 37,40 ----
***************
*** 56,78 ****
{
if (!unit) return -1;
-
- if (!m_unit_list)
- {
- m_unit_list = unit;
- unit->m_next = NULL;
- return 0;
- }
-
- Unit* prev = m_unit_list;
- Unit* next = prev->m_next;
-
- while (next)
- {
- prev = next;
- next = next->m_next;
- }
! prev->m_next = unit;
! unit->m_next = NULL;
return 0;
--- 54,59 ----
{
if (!unit) return -1;
! m_units.push_back(unit);
return 0;
***************
*** 86,115 ****
{
if (!unit) return -1;
- if (!m_unit_list) return -1;
! if (unit == m_unit_list)
! {
! m_unit_list = unit->m_next;
! unit->m_next = NULL;
! return 0;
! }
!
! Unit* prev = m_unit_list;
! Unit* next = prev->m_next;
!
! while (next)
! {
! if (unit == next)
! {
! prev->m_next = unit->m_next;
! unit->m_next = NULL;
! return 0;
! }
!
! prev = next;
! next = next->m_next;
! }
! return -1;
}
--- 67,74 ----
{
if (!unit) return -1;
! m_units.remove(unit);
! return 0;
}
|
|
From: Randi J. R. <rjr...@us...> - 2001-08-10 00:40:43
|
Update of /cvsroot/regcom/regcom/src
In directory usw-pr-cvs1:/tmp/cvs-serv21397
Modified Files:
Unit.h Unit.cpp
Log Message:
(m_next) removed.
(m_id, m_map, m_xpos, m_ypos) Made private.
Index: Unit.h
===================================================================
RCS file: /cvsroot/regcom/regcom/src/Unit.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** Unit.h 2001/03/19 01:04:23 1.3
--- Unit.h 2001/08/10 00:40:40 1.4
***************
*** 29,33 ****
class Unit
{
! public:
int m_id;
--- 29,33 ----
class Unit
{
! private:
int m_id;
***************
*** 37,42 ****
int m_xpos;
int m_ypos;
-
- Unit* m_next;
public:
--- 37,40 ----
Index: Unit.cpp
===================================================================
RCS file: /cvsroot/regcom/regcom/src/Unit.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** Unit.cpp 2001/03/19 01:03:36 1.3
--- Unit.cpp 2001/08/10 00:40:40 1.4
***************
*** 38,42 ****
m_xpos = 0;
m_ypos = 0;
- m_next = NULL;
}
--- 38,41 ----
|
|
From: Randi J. R. <rjr...@us...> - 2001-07-06 23:17:27
|
Update of /cvsroot/regcom/regcom/src
In directory usw-pr-cvs1:/tmp/cvs-serv3844
Modified Files:
StringView.h
Log Message:
(Contains): Added.
Index: StringView.h
===================================================================
RCS file: /cvsroot/regcom/regcom/src/StringView.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** StringView.h 2001/06/06 04:36:34 1.1
--- StringView.h 2001/07/06 23:17:25 1.2
***************
*** 48,51 ****
--- 48,53 ----
void SetText(const char* text);
+
+ virtual int Contains(Point point) { return 0; }
};
|
|
From: Randi J. R. <rjr...@us...> - 2001-07-06 23:07:22
|
Update of /cvsroot/regcom/regcom/docs In directory usw-pr-cvs1:/tmp/cvs-serv2454 Modified Files: regcom.dox Log Message: (HAVE_DOT) Set to YES. Index: regcom.dox =================================================================== RCS file: /cvsroot/regcom/regcom/docs/regcom.dox,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** regcom.dox 2001/06/22 14:39:06 1.1 --- regcom.dox 2001/07/06 23:07:20 1.2 *************** *** 151,155 **** #--------------------------------------------------------------------------- ! HAVE_DOT = NO CLASS_GRAPH = YES COLLABORATION_GRAPH = YES --- 151,155 ---- #--------------------------------------------------------------------------- ! HAVE_DOT = YES CLASS_GRAPH = YES COLLABORATION_GRAPH = YES *************** *** 158,162 **** GRAPHICAL_HIERARCHY = YES DOT_PATH = ! MAX_DOT_GRAPH_WIDTH = 1024 MAX_DOT_GRAPH_HEIGHT = 1024 GENERATE_LEGEND = YES --- 158,162 ---- GRAPHICAL_HIERARCHY = YES DOT_PATH = ! MAX_DOT_GRAPH_WIDTH = 480 MAX_DOT_GRAPH_HEIGHT = 1024 GENERATE_LEGEND = YES |
|
From: Randi J. R. <rjr...@us...> - 2001-07-06 23:05:07
|
Update of /cvsroot/regcom/regcom/src
In directory usw-pr-cvs1:/tmp/cvs-serv2137
Modified Files:
Console.h Game.cpp
Log Message:
Updated to work with changes in MapView and RadarView.
Index: Console.h
===================================================================
RCS file: /cvsroot/regcom/regcom/src/Console.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** Console.h 2001/06/06 04:34:22 1.3
--- Console.h 2001/07/06 23:05:04 1.4
***************
*** 66,73 ****
public:
- void SetMap(Map* map) { m_radar_view->SetMap(map); }
void SetMapView(MapView* view) { m_radar_view->SetMapView(view); }
void SetRadarCursor(Rect rect) { m_radar_view->SetCursor(rect); }
! void ScanMap() { m_radar_view->ScanMap(); }
};
--- 66,72 ----
public:
void SetMapView(MapView* view) { m_radar_view->SetMapView(view); }
void SetRadarCursor(Rect rect) { m_radar_view->SetCursor(rect); }
! void ScanMap(Map* map) { m_radar_view->ScanMap(map); }
};
Index: Game.cpp
===================================================================
RCS file: /cvsroot/regcom/regcom/src/Game.cpp,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -r1.6 -r1.7
*** Game.cpp 2001/06/07 05:25:49 1.6
--- Game.cpp 2001/07/06 23:05:04 1.7
***************
*** 323,328 ****
case GAMEUSEREVENT_NEWMAP:
m_map->FractalCreate(16,8);
! m_map_view->ScanMap();
! m_console->ScanMap();
break;
--- 323,328 ----
case GAMEUSEREVENT_NEWMAP:
m_map->FractalCreate(16,8);
! m_map_view->ScanMap(m_map);
! m_console->ScanMap(m_map);
break;
***************
*** 425,432 ****
m_map = new Map;
- m_console->SetMap(m_map);
m_console->SetMapView(m_map_view);
- m_map_view->SetMap(m_map);
m_map_view->SetConsole(m_console);
m_map_view->SetVelocity(2000.0);
--- 425,430 ----
***************
*** 435,440 ****
m_map->SetSize(MAP_WIDTH,MAP_HEIGHT);
m_map->FractalCreate(16,8);
! m_map_view->ScanMap();
! m_console->ScanMap();
// initialize variables and loop
--- 433,440 ----
m_map->SetSize(MAP_WIDTH,MAP_HEIGHT);
m_map->FractalCreate(16,8);
! m_map_view->ScanMap(m_map);
! m_console->ScanMap(m_map);
!
! m_map_view->Warp(0,0);
// initialize variables and loop
|
|
From: Randi J. R. <rjr...@us...> - 2001-07-06 23:04:03
|
Update of /cvsroot/regcom/regcom/src
In directory usw-pr-cvs1:/tmp/cvs-serv1924
Modified Files:
MapView.cpp MapView.h RadarView.cpp RadarView.h
Log Message:
(m_map, SetMap) Removed. (ScanMap) Added map argument.
Index: MapView.cpp
===================================================================
RCS file: /cvsroot/regcom/regcom/src/MapView.cpp,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -r1.7 -r1.8
*** MapView.cpp 2001/06/07 05:21:52 1.7
--- MapView.cpp 2001/07/06 23:04:01 1.8
***************
*** 100,103 ****
--- 100,106 ----
};
+ #define FLOOR2(x) ( ((x)>=0) ? ((x)>>1) : (((x)-1)/2) )
+ #define CEIL2(x) ( ((x)>=0) ? (((x)+1)>>1) : ((x)/2) )
+
//----------------------------------------------------------------------
// FUNCTION: MapView::MapView
***************
*** 111,115 ****
m_show_grid = false;
- m_map = NULL;
m_console = NULL;
--- 114,117 ----
***************
*** 570,578 ****
//----------------------------------------------------------------------
! void MapView::ScanMap()
{
int n;
! SetDataSize(m_map->GetWidth(),m_map->GetHeight());
unsigned char* base = m_data[0];
--- 572,580 ----
//----------------------------------------------------------------------
! void MapView::ScanMap(Map* map)
{
int n;
! SetDataSize(map->GetWidth(),map->GetHeight());
unsigned char* base = m_data[0];
***************
*** 590,594 ****
m_data[n][index] = 255;
! Tile* tile = m_map->GetTile(x,y);
//------------------------------------------
--- 592,596 ----
m_data[n][index] = 255;
! Tile* tile = map->GetTile(x,y);
//------------------------------------------
***************
*** 769,774 ****
MarkLOS(m_drag_x0,m_drag_y0,m_drag_x1,m_drag_y1);
! Point p0 = m_map->ArrayToHex(Point(m_drag_x0,m_drag_y0));
! Point p1 = m_map->ArrayToHex(Point(m_drag_x1,m_drag_y1));
Hex h0(p0.x,p0.y);
--- 771,776 ----
MarkLOS(m_drag_x0,m_drag_y0,m_drag_x1,m_drag_y1);
! Point p0 = ArrayToHex(Point(m_drag_x0,m_drag_y0));
! Point p1 = ArrayToHex(Point(m_drag_x1,m_drag_y1));
Hex h0(p0.x,p0.y);
***************
*** 879,884 ****
Point p1(x1,y1);
! p0 = m_map->ArrayToHex(p0);
! p1 = m_map->ArrayToHex(p1);
Hex h0(p0.x,p0.y);
--- 881,886 ----
Point p1(x1,y1);
! p0 = ArrayToHex(p0);
! p1 = ArrayToHex(p1);
Hex h0(p0.x,p0.y);
***************
*** 896,900 ****
{
Point p(cur1.hx,cur1.hy);
! p = m_map->HexToArray(p);
m_data[MAPVIEW_LOSLAYER][p.x + p.y * m_data_width] = 254;
}
--- 898,902 ----
{
Point p(cur1.hx,cur1.hy);
! p = HexToArray(p);
m_data[MAPVIEW_LOSLAYER][p.x + p.y * m_data_width] = 254;
}
***************
*** 903,907 ****
{
Point p(cur2.hx,cur2.hy);
! p = m_map->HexToArray(p);
m_data[MAPVIEW_LOSLAYER][p.x + p.y * m_data_width] = 254;
}
--- 905,909 ----
{
Point p(cur2.hx,cur2.hy);
! p = HexToArray(p);
m_data[MAPVIEW_LOSLAYER][p.x + p.y * m_data_width] = 254;
}
***************
*** 937,940 ****
--- 939,968 ----
}
}
+ }
+
+ //----------------------------------------------------------------------
+ // FUNCTION: MapView::ArrayToHex
+ //----------------------------------------------------------------------
+
+ Point MapView::ArrayToHex(Point p)
+ {
+ int hx = p.y + FLOOR2(p.x);
+ int hy = p.y - CEIL2(p.x);
+ p.x = hx;
+ p.y = -hy;
+ return p;
+ }
+
+ //----------------------------------------------------------------------
+ // FUNCTION: Map::HexToArray
+ //----------------------------------------------------------------------
+
+ Point MapView::HexToArray(Point p)
+ {
+ int hx = p.x;
+ int hy = -p.y;
+ p.x = hx - hy;
+ p.y = hy + CEIL2(hx-hy);
+ return p;
}
Index: MapView.h
===================================================================
RCS file: /cvsroot/regcom/regcom/src/MapView.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** MapView.h 2001/06/06 04:34:22 1.4
--- MapView.h 2001/07/06 23:04:01 1.5
***************
*** 44,48 ****
int m_show_grid;
- Map* m_map;
Console* m_console;
--- 44,47 ----
***************
*** 95,98 ****
--- 94,100 ----
void SetZoomLevel(int n);
+ Point MapView::ArrayToHex(Point p);
+ Point MapView::HexToArray(Point p);
+
public:
***************
*** 100,107 ****
virtual ~MapView();
- void SetMap(Map* map) { m_map = map; }
void SetConsole(Console* console) { m_console = console; }
! void ScanMap();
void ZoomIn();
void ZoomOut();
--- 102,108 ----
virtual ~MapView();
void SetConsole(Console* console) { m_console = console; }
! void ScanMap(Map* map);
void ZoomIn();
void ZoomOut();
Index: RadarView.cpp
===================================================================
RCS file: /cvsroot/regcom/regcom/src/RadarView.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** RadarView.cpp 2001/06/06 04:34:22 1.4
--- RadarView.cpp 2001/07/06 23:04:01 1.5
***************
*** 36,40 ****
RadarView::RadarView()
{
- m_map = NULL;
m_mapview = NULL;
--- 36,39 ----
***************
*** 86,92 ****
// draw right margin
! if (clip.x + clip.w > m_map->GetWidth())
{
! int delta = clip.x + clip.w - m_map->GetWidth();
Rect a(x+clip.w-delta,y,delta,clip.h);
a = rect.Intersection(a);
--- 85,91 ----
// draw right margin
! if (clip.x + clip.w > m_image->Width())
{
! int delta = clip.x + clip.w - m_image->Width();
Rect a(x+clip.w-delta,y,delta,clip.h);
a = rect.Intersection(a);
***************
*** 108,114 ****
// draw bottom margin
! if (clip.y + clip.h > m_map->GetHeight())
{
! int delta = clip.y + clip.h - m_map->GetHeight();
Rect a(x,y+clip.h-delta,clip.w,delta);
a = rect.Intersection(a);
--- 107,113 ----
// draw bottom margin
! if (clip.y + clip.h > m_image->Height())
{
! int delta = clip.y + clip.h - m_image->Height();
Rect a(x,y+clip.h-delta,clip.w,delta);
a = rect.Intersection(a);
***************
*** 196,209 ****
if (m_viewport_pos.y < 0) m_viewport_pos.y = 0;
! if (m_cursor.w > m_map->GetWidth())
{
m_cursor.x = 0;
! m_cursor.w = m_map->GetWidth()-1;
}
! if (m_cursor.h > m_map->GetHeight())
{
m_cursor.y = 0;
! m_cursor.h = m_map->GetHeight()-1;
}
--- 195,208 ----
if (m_viewport_pos.y < 0) m_viewport_pos.y = 0;
! if (m_cursor.w > m_image->Width())
{
m_cursor.x = 0;
! m_cursor.w = m_image->Width()-1;
}
! if (m_cursor.h > m_image->Height())
{
m_cursor.y = 0;
! m_cursor.h = m_image->Height()-1;
}
***************
*** 225,235 ****
//----------------------------------------------------------------------
! void RadarView::PixelScanMap()
{
Surface pixels;
pixels.Load("Pixels.bmp");
! int w = m_map->GetWidth();
! int h = m_map->GetHeight();
m_image->Create(w,h);
--- 224,234 ----
//----------------------------------------------------------------------
! void RadarView::PixelScanMap(Map* map)
{
Surface pixels;
pixels.Load("Pixels.bmp");
! int w = map->GetWidth();
! int h = map->GetHeight();
m_image->Create(w,h);
***************
*** 248,252 ****
int sx,sy;
! Tile* tile = m_map->GetTile(x,y);
if (tile->IsWater())
--- 247,251 ----
int sx,sy;
! Tile* tile = map->GetTile(x,y);
if (tile->IsWater())
***************
*** 265,269 ****
{
int level0 = tile->GetLevel();
! int level1 = m_map->GetTile(x-1,y-1)->GetLevel();
if (((y&31) == 0) ||
--- 264,268 ----
{
int level0 = tile->GetLevel();
! int level1 = map->GetTile(x-1,y-1)->GetLevel();
if (((y&31) == 0) ||
***************
*** 292,302 ****
//----------------------------------------------------------------------
! void RadarView::BlitScanMap()
{
Surface pixels;
pixels.Load("Pixels.bmp");
! int w = m_map->GetWidth();
! int h = m_map->GetHeight();
m_image->Create(w,h);
--- 291,301 ----
//----------------------------------------------------------------------
! void RadarView::BlitScanMap(Map* map)
{
Surface pixels;
pixels.Load("Pixels.bmp");
! int w = map->GetWidth();
! int h = map->GetHeight();
m_image->Create(w,h);
***************
*** 308,312 ****
for (int x = 0; x < w; x++)
{
! Tile* tile = m_map->GetTile(x,y);
if (tile->IsWater())
--- 307,311 ----
for (int x = 0; x < w; x++)
{
! Tile* tile = map->GetTile(x,y);
if (tile->IsWater())
***************
*** 325,329 ****
{
int level0 = tile->GetLevel();
! int level1 = m_map->GetTile(x-1,y-1)->GetLevel();
if (level0 > level1) pixel.x += 4;
--- 324,328 ----
{
int level0 = tile->GetLevel();
! int level1 = map->GetTile(x-1,y-1)->GetLevel();
if (level0 > level1) pixel.x += 4;
***************
*** 342,346 ****
//----------------------------------------------------------------------
! void RadarView::ScanMap()
{
//--------------------------------------------------
--- 341,345 ----
//----------------------------------------------------------------------
! void RadarView::ScanMap(Map* map)
{
//--------------------------------------------------
***************
*** 350,363 ****
m_visible_rect = Bounds();
! if (m_map->GetWidth() < Width())
{
! m_visible_rect.x = Width()/2 - m_map->GetWidth()/2;
! m_visible_rect.w = m_map->GetWidth();
}
! if (m_map->GetHeight() < Height())
{
! m_visible_rect.y = Height()/2 - m_map->GetHeight()/2;
! m_visible_rect.h = m_map->GetHeight();
}
--- 349,362 ----
m_visible_rect = Bounds();
! if (map->GetWidth() < Width())
{
! m_visible_rect.x = Width()/2 - map->GetWidth()/2;
! m_visible_rect.w = map->GetWidth();
}
! if (map->GetHeight() < Height())
{
! m_visible_rect.y = Height()/2 - map->GetHeight()/2;
! m_visible_rect.h = map->GetHeight();
}
***************
*** 366,370 ****
//--------------------------------------------------
! PixelScanMap();
Invalidate();
--- 365,369 ----
//--------------------------------------------------
! PixelScanMap(map);
Invalidate();
***************
*** 410,415 ****
a = Point(0,0);
! b = Point(m_map->GetWidth()-m_cursor.w,
! m_map->GetHeight()-m_cursor.h);
if (c.x < a.x) c.x = a.x;
--- 409,414 ----
a = Point(0,0);
! b = Point(m_image->Width()-m_cursor.w,
! m_image->Height()-m_cursor.h);
if (c.x < a.x) c.x = a.x;
Index: RadarView.h
===================================================================
RCS file: /cvsroot/regcom/regcom/src/RadarView.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** RadarView.h 2001/06/06 04:34:22 1.3
--- RadarView.h 2001/07/06 23:04:01 1.4
***************
*** 42,46 ****
private:
- Map* m_map;
MapView* m_mapview;
--- 42,45 ----
***************
*** 62,67 ****
void DrawCursor(Rect rect);
! void PixelScanMap();
! void BlitScanMap();
public:
--- 61,66 ----
void DrawCursor(Rect rect);
! void PixelScanMap(Map* map);
! void BlitScanMap(Map* map);
public:
***************
*** 72,78 ****
virtual void Draw(Rect rect);
- void SetMap(Map* map) { m_map = map; }
void SetMapView(MapView* view) { m_mapview = view; }
! void ScanMap();
void SetCursor(Rect& rect);
--- 71,76 ----
virtual void Draw(Rect rect);
void SetMapView(MapView* view) { m_mapview = view; }
! void ScanMap(Map* map);
void SetCursor(Rect& rect);
|
|
From: Randi J. R. <rjr...@us...> - 2001-07-06 23:03:16
|
Update of /cvsroot/regcom/regcom/src
In directory usw-pr-cvs1:/tmp/cvs-serv1829
Modified Files:
Map.cpp Map.h
Log Message:
(ArrayToHex, HexToArray): Moved from Map to MapView.
Index: Map.cpp
===================================================================
RCS file: /cvsroot/regcom/regcom/src/Map.cpp,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -r1.6 -r1.7
*** Map.cpp 2001/05/26 14:01:06 1.6
--- Map.cpp 2001/07/06 23:03:14 1.7
***************
*** 29,35 ****
#include "Point.h"
- #define FLOOR2(x) ( ((x)>=0) ? ((x)>>1) : (((x)-1)/2) )
- #define CEIL2(x) ( ((x)>=0) ? (((x)+1)>>1) : ((x)/2) )
-
//----------------------------------------------------------------------
// CONSTRUCTOR: Map::Map
--- 29,32 ----
***************
*** 250,331 ****
{
return &m_tile[x+m_width*y];
- }
-
- //----------------------------------------------------------------------
- // FUNCTION: Map::ArrayToHex
- //----------------------------------------------------------------------
- //
- // Description:
- //
- // Converts a point from array to hex coordinates.
- //
- // Parameters:
- //
- // p - Point containing array coodinates.
- //
- // Returns:
- //
- // Point containing hex coordinates.
- //
- //----------------------------------------------------------------------
-
- Point Map::ArrayToHex(Point p)
- {
- int hx = p.y + FLOOR2(p.x);
- int hy = p.y - CEIL2(p.x);
- p.x = hx;
- p.y = -hy;
- return p;
- }
-
- //----------------------------------------------------------------------
- // FUNCTION: Map::HexToArray
- //----------------------------------------------------------------------
- //
- // Description:
- //
- // Converst a point from hex to array coordinates.
- //
- // Parameters:
- //
- // p - Point containing hex coodinates.
- //
- // Returns:
- //
- // Point containing array coordinates.
- //
- //----------------------------------------------------------------------
-
- Point Map::HexToArray(Point p)
- {
- int hx = p.x;
- int hy = -p.y;
- p.x = hx - hy;
- p.y = hy + CEIL2(hx-hy);
- return p;
- }
-
- //----------------------------------------------------------------------
- // FUNCTION: Map::LineOfSight
- //----------------------------------------------------------------------
- //
- // Description:
- //
- // Determines if line of sight exists between two coordinates.
- //
- // Parameters:
- //
- // x0,y0,z0 - First coordinate.
- // x1,y1,z1 - Second coordinate.
- //
- // Returns:
- //
- // Returns non-zero if there is line of sight.
- //
- //----------------------------------------------------------------------
-
- int Map::LineOfSight(int x0, int y0, int z0, int x1, int y1, int z1)
- {
- return 1;
}
--- 247,250 ----
Index: Map.h
===================================================================
RCS file: /cvsroot/regcom/regcom/src/Map.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** Map.h 2001/05/26 14:01:06 1.4
--- Map.h 2001/07/06 23:03:14 1.5
***************
*** 26,30 ****
class Tile;
- class Point;
class Map
--- 26,29 ----
***************
*** 52,60 ****
Tile* GetTile(int x, int y);
-
- Point ArrayToHex(Point p);
- Point HexToArray(Point p);
-
- int LineOfSight(int x0, int y0, int z0, int x1, int y1, int z1);
};
--- 51,54 ----
|
|
From: Randi J. R. <rjr...@us...> - 2001-07-06 23:01:50
|
Update of /cvsroot/regcom/regcom/src
In directory usw-pr-cvs1:/tmp/cvs-serv1428
Modified Files:
Surface.cpp Surface.h
Log Message:
(Width, Height, Depth, Pitch, Pixels): Moved from header to source and added check for NULL surface pointer.
Index: Surface.cpp
===================================================================
RCS file: /cvsroot/regcom/regcom/src/Surface.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** Surface.cpp 2001/05/26 13:25:21 1.3
--- Surface.cpp 2001/07/06 23:01:48 1.4
***************
*** 355,356 ****
--- 355,412 ----
return 0;
}
+
+ //----------------------------------------------------------------------
+ // FUNCTION: Surface::
+ //----------------------------------------------------------------------
+
+ int Surface::Width()
+ {
+ if (m_surface)
+ return m_surface->w;
+ else return 0;
+ }
+
+ //----------------------------------------------------------------------
+ // FUNCTION: Surface::
+ //----------------------------------------------------------------------
+
+ int Surface::Height()
+ {
+ if (m_surface)
+ return m_surface->h;
+ else return 0;
+ }
+
+ //----------------------------------------------------------------------
+ // FUNCTION: Surface::
+ //----------------------------------------------------------------------
+
+ int Surface::Depth()
+ {
+ if (m_surface)
+ return m_surface->format->BytesPerPixel;
+ else return 0;
+ }
+
+ //----------------------------------------------------------------------
+ // FUNCTION: Surface::
+ //----------------------------------------------------------------------
+
+ int Surface::Pitch()
+ {
+ if (m_surface)
+ return m_surface->pitch;
+ else return 0;
+ }
+
+ //----------------------------------------------------------------------
+ // FUNCTION: Surface::
+ //----------------------------------------------------------------------
+
+ void* Surface::Pixels()
+ {
+ if (m_surface)
+ return m_surface->pixels;
+ else return NULL;
+ }
+
Index: Surface.h
===================================================================
RCS file: /cvsroot/regcom/regcom/src/Surface.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** Surface.h 2001/05/26 13:25:21 1.3
--- Surface.h 2001/07/06 23:01:48 1.4
***************
*** 53,62 ****
Uint32 GetPixel(int x, int y);
! int Width() { return m_surface->w; }
! int Height() { return m_surface->h; }
! int Depth() { return m_surface->format->BytesPerPixel; }
! int Pitch() { return m_surface->pitch; }
! void* Pixels() { return m_surface->pixels; }
int Lock();
--- 53,62 ----
Uint32 GetPixel(int x, int y);
! int Width();
! int Height();
! int Depth();
! int Pitch();
! void* Pixels();
int Lock();
|
|
From: Randi J. R. <rjr...@us...> - 2001-06-22 14:51:58
|
Update of /cvsroot/regcom/regcom/docs In directory usw-pr-cvs1:/tmp/cvs-serv23202 Modified Files: Makefile.am Log Message: Updated to reflect file adds and removes. Index: Makefile.am =================================================================== RCS file: /cvsroot/regcom/regcom/docs/Makefile.am,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** Makefile.am 2001/03/19 01:07:15 1.4 --- Makefile.am 2001/06/22 14:51:55 1.5 *************** *** 24,32 **** SUBDIRS = images ! EXTRA_DIST = index.html \ ! Usage.html ! CommandLine.html \ ! KeyboardCommands.html \ ! MouseUsage.html \ ! Development.html \ ! Classes.html --- 24,35 ---- SUBDIRS = images ! EXTRA_DIST = \ ! index.html \ ! command.html \ ! keyboard.html \ ! mouse.html \ ! gendox.bat \ ! regcom.dox \ ! header.html \ ! footer.html \ ! doxygen.css |
|
From: Randi J. R. <rjr...@us...> - 2001-06-22 14:50:31
|
Update of /cvsroot/regcom/regcom/docs In directory usw-pr-cvs1:/tmp/cvs-serv22455 Added Files: gendox.bat Log Message: Added doxygen files. --- NEW FILE: gendox.bat --- doxygen regcom.dox |
|
From: Randi J. R. <rjr...@us...> - 2001-06-22 14:39:09
|
Update of /cvsroot/regcom/regcom/docs
In directory usw-pr-cvs1:/tmp/cvs-serv15277
Added Files:
regcom.dox header.html footer.html doxygen.css
Log Message:
Added doxygen files.
--- NEW FILE: regcom.dox ---
#---------------------------------------------------------------------------
# General configuration options
#---------------------------------------------------------------------------
PROJECT_NAME =
PROJECT_NUMBER =
OUTPUT_DIRECTORY =
OUTPUT_LANGUAGE = English
EXTRACT_ALL = YES
EXTRACT_PRIVATE = YES
EXTRACT_STATIC = YES
HIDE_UNDOC_MEMBERS = NO
HIDE_UNDOC_CLASSES = NO
BRIEF_MEMBER_DESC = YES
REPEAT_BRIEF = YES
ALWAYS_DETAILED_SEC = NO
FULL_PATH_NAMES = NO
STRIP_FROM_PATH =
INTERNAL_DOCS = NO
CLASS_DIAGRAMS = YES
SOURCE_BROWSER = NO
INLINE_SOURCES = NO
STRIP_CODE_COMMENTS = YES
CASE_SENSE_NAMES = YES
HIDE_SCOPE_NAMES = NO
VERBATIM_HEADERS = YES
SHOW_INCLUDE_FILES = YES
JAVADOC_AUTOBRIEF = NO
INHERIT_DOCS = YES
INLINE_INFO = YES
SORT_MEMBER_DOCS = YES
DISTRIBUTE_GROUP_DOC = NO
TAB_SIZE = 4
ENABLED_SECTIONS =
GENERATE_TODOLIST = YES
GENERATE_TESTLIST = YES
GENERATE_BUGLIST = YES
ALIASES =
MAX_INITIALIZER_LINES = 30
OPTIMIZE_OUTPUT_FOR_C = NO
SHOW_USED_FILES = YES
#---------------------------------------------------------------------------
# configuration options related to warning and progress messages
#---------------------------------------------------------------------------
QUIET = NO
WARNINGS = YES
WARN_IF_UNDOCUMENTED = YES
WARN_FORMAT = "$file:$line: $text"
WARN_LOGFILE =
#---------------------------------------------------------------------------
# configuration options related to the input files
#---------------------------------------------------------------------------
INPUT = "../src"
FILE_PATTERNS = "*.h"
RECURSIVE = NO
EXCLUDE =
EXCLUDE_PATTERNS =
EXAMPLE_PATH =
EXAMPLE_PATTERNS =
IMAGE_PATH =
INPUT_FILTER =
FILTER_SOURCE_FILES = NO
#---------------------------------------------------------------------------
# configuration options related to the alphabetical class index
#---------------------------------------------------------------------------
ALPHABETICAL_INDEX = NO
COLS_IN_ALPHA_INDEX = 5
IGNORE_PREFIX =
#---------------------------------------------------------------------------
# configuration options related to the HTML output
#---------------------------------------------------------------------------
GENERATE_HTML = YES
HTML_OUTPUT =
HTML_HEADER = header.html
HTML_FOOTER = footer.html
HTML_STYLESHEET = doxygen.css
HTML_ALIGN_MEMBERS = YES
GENERATE_HTMLHELP = NO
GENERATE_CHI = NO
BINARY_TOC = NO
TOC_EXPAND = NO
DISABLE_INDEX = YES
ENUM_VALUES_PER_LINE = 1
GENERATE_TREEVIEW = NO
TREEVIEW_WIDTH = 250
#---------------------------------------------------------------------------
# configuration options related to the LaTeX output
#---------------------------------------------------------------------------
GENERATE_LATEX = NO
LATEX_OUTPUT = latex
COMPACT_LATEX = NO
PAPER_TYPE = a4wide
EXTRA_PACKAGES =
LATEX_HEADER =
PDF_HYPERLINKS = NO
USE_PDFLATEX = NO
LATEX_BATCHMODE = NO
#---------------------------------------------------------------------------
# configuration options related to the RTF output
#---------------------------------------------------------------------------
GENERATE_RTF = NO
RTF_OUTPUT = rtf
COMPACT_RTF = NO
RTF_HYPERLINKS = NO
RTF_STYLESHEET_FILE =
#---------------------------------------------------------------------------
# configuration options related to the man page output
#---------------------------------------------------------------------------
GENERATE_MAN = NO
MAN_OUTPUT = man
MAN_EXTENSION = .3
#---------------------------------------------------------------------------
# Configuration options related to the preprocessor
#---------------------------------------------------------------------------
ENABLE_PREPROCESSING = YES
MACRO_EXPANSION = NO
EXPAND_ONLY_PREDEF = NO
SEARCH_INCLUDES = YES
INCLUDE_PATH =
INCLUDE_FILE_PATTERNS =
PREDEFINED =
EXPAND_AS_DEFINED =
#---------------------------------------------------------------------------
# Configuration::addtions related to external references
#---------------------------------------------------------------------------
TAGFILES =
GENERATE_TAGFILE =
ALLEXTERNALS = NO
PERL_PATH = /usr/bin/perl
#---------------------------------------------------------------------------
# Configuration options related to the dot tool
#---------------------------------------------------------------------------
HAVE_DOT = NO
CLASS_GRAPH = YES
COLLABORATION_GRAPH = YES
INCLUDE_GRAPH = YES
INCLUDED_BY_GRAPH = YES
GRAPHICAL_HIERARCHY = YES
DOT_PATH =
MAX_DOT_GRAPH_WIDTH = 1024
MAX_DOT_GRAPH_HEIGHT = 1024
GENERATE_LEGEND = YES
DOT_CLEANUP = YES
#---------------------------------------------------------------------------
# Configuration::addtions related to the search engine
#---------------------------------------------------------------------------
SEARCHENGINE = NO
CGI_NAME = search.cgi
CGI_URL =
DOC_URL =
DOC_ABSPATH =
BIN_ABSPATH = /usr/local/bin/
EXT_DOC_PATHS =
--- NEW FILE: header.html ---
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head><meta name="robots" content="noindex">
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>$title</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body bgcolor="#ffffff">
<img src="../images/regcom.png" alt="Regimental Command" width="480" height="80">
<br>
[ <a href="../index.html">Index</a> ]
[ <a href="index.html">Documentation</a> ]
<p>
--- NEW FILE: footer.html ---
<p>
<hr>
<p>
[ <a href="../index.html">Index</a> ]
[ <a href="index.html">Documentation</a> ]
<p>
<i>Regimental Command</i> - Copyright (C) 1997-2001 Randi J. Relander<br>
<p>
Last modified: $datetime<br>
<p>
<address>
Send comments and questions to <a href="mailto:rjr...@us...">Randi J. Relander</a><br>
</address>
</body>
</html>
--- NEW FILE: doxygen.css ---
H1 { font-size: large; font-weight: bold }
H2 { font-size: medium; font-weight: normal }
H3 { font-size: small; font-weight: bold }
BODY { font-size: small; font-family: "Lucida,Helvetica,Tahoma,Arial,sans-serif" }
A.qindex {}
A.qindexRef {}
A.el { text-decoration: none; font-weight: bold }
A.elRef { font-weight: bold }
A.code { text-decoration: none; font-weight: normal; color: #4444ee }
A.codeRef { font-weight: normal; color: #4444ee }
DL.el { margin-left: -1cm }
DIV.fragment { width: 100%; border: none; background-color: #eeeeee }
DIV.ah { background-color: black; margin-bottom: 3; margin-top: 3 }
TD.md { background-color: #f2f2ff }
DIV.groupHeader { margin-left: 16; margin-top: 12; margin-bottom: 6; font-weight: bold }
DIV.groupText { margin-left: 16; font-style: italic; font-size: smaller }
FONT.keyword { color: #008000 }
FONT.keywordtype { color: #604020 }
FONT.keywordflow { color: #e08000 }
FONT.comment { color: #800000 }
FONT.preprocessor { color: #806020 }
FONT.stringliteral { color: #002080 }
FONT.charliteral { color: #008080 }
|
|
From: Randi J. R. <rjr...@us...> - 2001-06-22 14:28:42
|
Update of /cvsroot/regcom/regcom/docs In directory usw-pr-cvs1:/tmp/cvs-serv13130 Modified Files: index.html Log Message: Moved usage links to index page. Index: index.html =================================================================== RCS file: /cvsroot/regcom/regcom/docs/index.html,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** index.html 2001/06/22 01:59:20 1.5 --- index.html 2001/06/22 14:28:38 1.6 *************** *** 10,14 **** [ <a href="index.html">Index</a> ] - [ <a href="usage.html">Usage</a> ] [ <a href="html/index.html">Documentation</a> ] --- 10,13 ---- *************** *** 24,27 **** --- 23,33 ---- <a HREF="http://www.libsdl.org">Simple Direct Media Layer</a>, a free cross-platform multi-media development API. + </blockquote> + + <font size="+1"><b>Usage</b></font> + <blockquote> + <a href="command.html">Command Line</a><br> + <a href="keyboard.html">Keyboard Commands</a><br> + <a href="mouse.html">Mouse Usage</a><br> </blockquote> |
|
From: Randi J. R. <rjr...@us...> - 2001-06-22 14:28:05
|
Update of /cvsroot/regcom/regcom/docs In directory usw-pr-cvs1:/tmp/cvs-serv12905 Modified Files: mouse.html keyboard.html command.html Log Message: Removed link to usage.html. Index: mouse.html =================================================================== RCS file: /cvsroot/regcom/regcom/docs/mouse.html,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** mouse.html 2001/06/22 01:40:17 1.1 --- mouse.html 2001/06/22 14:28:01 1.2 *************** *** 10,14 **** [ <a href="index.html">Index</a> ] - [ <a href="usage.html">Usage</a> ] [ <a href="html/index.html">Documentation</a> ] --- 10,13 ---- Index: keyboard.html =================================================================== RCS file: /cvsroot/regcom/regcom/docs/keyboard.html,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** keyboard.html 2001/06/22 01:40:17 1.1 --- keyboard.html 2001/06/22 14:28:01 1.2 *************** *** 10,14 **** [ <a href="index.html">Index</a> ] - [ <a href="usage.html">Usage</a> ] [ <a href="html/index.html">Documentation</a> ] --- 10,13 ---- Index: command.html =================================================================== RCS file: /cvsroot/regcom/regcom/docs/command.html,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** command.html 2001/06/22 01:40:17 1.1 --- command.html 2001/06/22 14:28:01 1.2 *************** *** 10,14 **** [ <a href="index.html">Index</a> ] - [ <a href="usage.html">Usage</a> ] [ <a href="html/index.html">Documentation</a> ] --- 10,13 ---- |
|
From: Randi J. R. <rjr...@us...> - 2001-06-22 01:40:19
|
Update of /cvsroot/regcom/regcom/docs In directory usw-pr-cvs1:/tmp/cvs-serv26020 Added Files: mouse.html keyboard.html command.html Log Message: Updated and changed to lowercase filenames. --- NEW FILE: mouse.html --- <html> <head><title>Regimental Command - Mouse Usage</title></head> <body bgcolor="#ffffff" text=black link="#402080" vlink="#602060" alink="#ff0000"> <font face="Lucida,Helvetica,Tahoma,Arial"> <a href="http://regcom.sourceforge.net"> <img src="images/regcom.png" alt="Regimental Command" width="480" height="80" border="0"></a> <br> [ <a href="index.html">Index</a> ] [ <a href="usage.html">Usage</a> ] [ <a href="html/index.html">Documentation</a> ] <p> <font size="+1"><b>Mouse Usage</b></font> <blockquote> <b>Command Console</b><p> Moving the mouse over buttons on the command console will highlight the button and display a short help message in the command console status bar. Clicking on the button will execute the corresponding command.<p> <b>Radar View</b><p> Clicking and dragging on the radar view will move the radar cursor and scroll the map view. If the radar image is larger than the radar view, the radar image will scroll when the cursor reaches the edge of the radar view.<p> <b>Map View</b><p> Moving the mouse over hexes on the map view will display the coordinates of the hex in the command console status bar. Clicking and dragging on the map view displays the hexes intersecting the line connecting the centers of the two hexes. The hex range between the two hexes is displayed in the command console status bar.<p> </blockquote> <p> <hr> <p> <i>Regimental Command</i> - Copyright (C) 1997-2001 Randi J. Relander<br> <p> Last modified: Thursday, June 21, 2001<p> <ADDRESS> Send comments and questions to <A HREF="mailto:rjr...@us...">Randi J. Relander</A> </ADDRESS> </font> </body> </html> --- NEW FILE: keyboard.html --- <html> <head><title>Regimental Command - Keyboard Commands</title></head> <body bgcolor="#ffffff" text=black link="#402080" vlink="#602060" alink="#ff0000"> <font face="Lucida,Helvetica,Tahoma,Arial"> <a href="http://regcom.sourceforge.net"> <img src="images/regcom.png" alt="Regimental Command" width="480" height="80" border="0"></a> <br> [ <a href="index.html">Index</a> ] [ <a href="usage.html">Usage</a> ] [ <a href="html/index.html">Documentation</a> ] <p> <font size="+1"><b>Keyboard Commands</b></font> <blockquote> <pre> <escape> quit <up arrow> scroll map up <down arrow> scroll map down <left arrow> scroll map left <right arrow> scroll map right <keypad plus> zoom map in <keypad minus> zoom map out <n> create new map <g> toggle map grid <x> toggle dirty rectangle debug <ctrl><g> toggle input grabbing <ctrl><z> iconify window </pre> </blockquote> <p> <hr> <p> <i>Regimental Command</i> - Copyright (C) 1997-2001 Randi J. Relander<br> <p> Last modified: Thursday, June 21, 2001<p> <ADDRESS> Send comments and questions to <A HREF="mailto:rjr...@us...">Randi J. Relander</A> </ADDRESS> </font> </body> </html> --- NEW FILE: command.html --- <html> <head><title>Regimental Command - Command Line</title></head> <body bgcolor="#ffffff" text=black link="#402080" vlink="#602060" alink="#ff0000"> <font face="Lucida,Helvetica,Tahoma,Arial"> <a href="http://regcom.sourceforge.net"> <img src="images/regcom.png" alt="Regimental Command" width="480" height="80" border="0"></a> <br> [ <a href="index.html">Index</a> ] [ <a href="usage.html">Usage</a> ] [ <a href="html/index.html">Documentation</a> ] <p> <font size="+1"><b>Command Line</b></font> <blockquote> <pre> Usage: regcom [OPTION] ... Options: --help display help information --version display version information Video options: --width=WIDTH set screen width --height=HEIGHT set screen height --depth=DEPTH set screen depth --fullscreen enable full screen mode --resizable enable window resizing Report bugs to <<A HREF="mailto:reg...@li...">reg...@li...</A>>. </pre> </blockquote> <p> <hr> <p> <i>Regimental Command</i> - Copyright (C) 1997-2001 Randi J. Relander<br> <p> Last modified: Thursday, June 21, 2001<p> <ADDRESS> Send comments and questions to <A HREF="mailto:rjr...@us...">Randi J. Relander</A> </ADDRESS> </font> </body> </html> |
|
From: Randi J. R. <rjr...@us...> - 2001-06-22 01:21:33
|
Update of /cvsroot/regcom/regcom/docs In directory usw-pr-cvs1:/tmp/cvs-serv23246 Removed Files: Usage.html MouseUsage.html KeyboardCommands.html Development.html CommandLine.html Classes.html Log Message: Removed. --- Usage.html DELETED --- --- MouseUsage.html DELETED --- --- KeyboardCommands.html DELETED --- --- Development.html DELETED --- --- CommandLine.html DELETED --- --- Classes.html DELETED --- |