86 Commits

Author SHA1 Message Date
Dave White
2f8e298c4f attempt to fix OoS ...
...that could occur with a network player  immediately following an AI
2004-05-27 19:33:55 +00:00
Dave White
35c82f9581 changes to network code to attempt to fix 'dropped chat messages' bug 2004-05-27 15:53:23 +00:00
Dave White
47c8c39a7b changes to make AI smarter 2004-05-13 02:03:28 +00:00
John B. Messerly
634d28c1f0 Added progressive search functionality...
...(for label text and unit names). Algorithm
performance proportional to map hexes.
2004-05-09 02:12:59 +00:00
John B. Messerly
b27bbbb6fc Small change: When a player is disconnected in an MP game, ...
...the save game prompt asks a question "Do you want to save?" so it
makes more sense to use gui:YES_NO buttons instead of gui::OK_CANCEL
buttons.
2004-05-08 21:46:44 +00:00
John B. Messerly
3454f98027 Added dialog that askes you to confirm your turn, ...
if you click end turn immediately after your turn is started. It
triggers if you haven't made any interative actions between the start
of your turn and clicking 'end turn'
2004-05-08 18:58:47 +00:00
Dave White
565603f5de added caching of data files to speed game loading 2004-05-07 21:32:51 +00:00
Dave White
6473270c43 made input of search strings and messages use a textbox that overlays the map,
which allows these operations to be performed asynchronously
2004-05-06 19:13:51 +00:00
John B. Messerly
0be7482cba [[Add search and fix continue]]
* Added a "search" action, which searches labels and unit names
(unit::description()) for the string you type. Case sensitive. Triggered by the
"/" key. Hitting enter at the enter-search-term dialog repeats the
previous search. Searches labels first, then units.

* Fixed a problem with the conditions for displaying the "continue move" action
in the context menu (it was checking things properly in
turn_info::continue_move(), but not in can_execute_command(...)). This caused
"Continue Move" to appear to be a valid option, but clicking it would have no
affect.
2004-05-05 03:37:14 +00:00
John B. Messerly
eca141e046 Small change [[to shroud and fog behavior]]:
"Show Enemy Moves" and "Best Possible Enemy Moves" won't show up in
the context menu now if there are no enemies visible. Whether any
enemies are visible or not is cached on turn_info, and recomputed
every time turn_info::clear_shroud() is called.

This change has no effect on maps that don't use shroud or fog.
2004-05-04 23:48:23 +00:00
John B. Messerly
08e46b18d9 Added a "continue move" action.
There are four parts to this patch:

1) add the action to the usual places 2) add a gamemap::location to class unit,
which stores the location we were trying to move to, 3) clear this
location on end-of-turn, or if the unit moves again this turn, and 4)
if a move is interrupted, reslect the unit's hex.

The new hotkey is 't'. To use this feature, select a unit that had its
move interrupted by seeing allies/enemies, and right click >> "Continue
Move", or press the 't' key.
2004-05-04 01:50:19 +00:00
John B. Messerly
b37199b612 [[Improvements to action menus]]
* Added toggleable action support to hotkey.[c|h]pp & playturn.[c|h]pp.
* Actions can now have images associated with them.
* Toggleable menu items use the checkbox graphics.
* Fixed some of the trivial warnings (newlines, double 0.0 constants where integer 0 required)
2004-05-03 04:06:53 +00:00
Dave White
f50ee653d3 made it so non-interactive mode works well with eras 2004-04-29 01:49:51 +00:00
John B. Messerly
8a80955b83 Added the ability to move units on fog/shroud maps without ...
...updating the fog/shroud, so the moves can be undone. The player can
commit the moves, forcing the fog/shroud to update, but then the moves
can no longer be undone.  Useful to make fog/shroud maps behave more
like normal maps, with respect to move undoing.
2004-04-25 18:50:42 +00:00
John B. Messerly
8eed6184eb [[Menu and action fixes]]
* Added new function turn_info::in_context_menu(HOTKEY_COMMAND) - this
function returns true if the given command should be present in the
context menu. This gives the option of providing more context sensitive
right-click menus without changing can_execute_command (and thereby
breaking hotkeys).

* RECRUIT, REPEAT_RECRUIT, and RECALL actions were changed to be
hidden in the context menu unless you right click on a castle/keep
hex. Hotkeys and the main menu are unaffected.
2004-04-12 00:00:49 +00:00
Dave White
5238dcc75a [[Game[lay fixes]]
- added randomization of temples in Muff Malal's peninsula
- made it so in MP games, players can receive labels and messages while it's their turn
- added patch to 'show possible enemy moves'
2004-04-05 19:29:23 +00:00
Dave White
36a20a3a1e made the game more interactive during the AI's turn 2004-04-02 23:42:19 +00:00
Dave White
73cc7116e2 attempt to fix "X_ShmPutImage" crash on GNU/Linux 2004-04-02 19:14:47 +00:00
Dave White
fc0c48f9a3 [[Miscellaneous fixes to graphics, lobby, and gameplay]]
- added new status image for illuminated underground

- made Li'sar start at level 2 and be upgradeable to level 3

- made it so users in lobby can see minimap of non-shroud games being played

- made it so the 'observer' setting is respected for multiplayer games

- made it so that the number of available positions in a game is shown
  in the lobby

- made it so the current turn of a game underway is shown in the lobby

- made the 'eye of the observer' work, allowing players to see who is
  observing their game. (only updates when it's a network player's
  turn)
2004-03-29 23:43:47 +00:00
Dave White
0bc0032b08 added basic statistics module 2004-03-22 21:44:38 +00:00
Dave White
1640dcd596 [[Terrain and calculations]]
- added cave-based terrain generator

- added calculations for battles
2004-03-21 19:05:23 +00:00
uid68803
b1f5695d1c added menus at top left of screen 2004-01-30 23:04:39 +00:00
uid67456
6b21616d59 Applied minimap scrolling patch from Jacobh 2004-01-29 11:16:24 +00:00
uid68803
8a3e61754c fixed some MP saving/loading bugs 2004-01-12 23:42:22 +00:00
uid68803
dcdaa8c3bc added basic implementation of menus to theming system.
fixed problem where enemy energy bars would always display as full yellow (CVS internal)
2003-12-29 23:33:01 +00:00
uid66289
b1c76bcb5b importing devsrv CVS to Savannah CVS 2003-12-23 22:45:30 +00:00
uid66289
32f66ee7ca v0.6rc2 2003-12-23 20:48:23 +00:00
uid66289
150597ab0f v0.6rc1 2003-12-23 20:16:21 +00:00
Dave White
f84cec57e3 added in repeatable recruit using ctrl+shift+r 2003-11-20 20:34:17 +00:00
Dave White
4ae1f8a704 fixed assertion failure 2003-11-07 05:47:19 +00:00
Dave White
e41c8bd858 extensive changes to the way event handling works 2003-11-01 04:38:26 +00:00
Dave White
4bf155d250 added center-on-middle click 2003-10-26 22:22:53 +00:00
Dave White
33bc6567c1 made it so when unit is selected, pressing a number n on the keyboard will...
...show how far that unit can move in n turns
2003-10-19 09:20:44 +00:00
Dave White
8cacbf0e9f made 'browse mode' much more functional
browse mode is viewing the game when it's not your turn
2003-10-18 11:08:29 +00:00
Dave White
839eac713c refactored menu class into its own source file 2003-10-11 00:30:46 +00:00
zas
ffa8b0bf4e Step1 of source move. 2003-09-19 10:21:25 +00:00