Commit graph

15849 commits

Author SHA1 Message Date
Joris
2f696d5f71 Fix gcc warnings. 2012-11-12 11:02:45 +01:00
cybermind
42cd7fad24 [-] Fixed compilation in previous revision 2012-11-10 22:02:20 +06:00
cybermind
c7d7ca33d9 [+] Ability to view unit's dependencies in button popup
[+] Ability to show button in grayscale if not available
[+] Ability to view number of free workers
[+] Some enhancement in button popup system
[+] Upgrades could now have a name
[*] Correction of AI rally point finder and attacking
[-] Incorrect SetPlayerData for SpeedUpgrade
2012-11-10 21:19:15 +06:00
Joris
48e338c83b Use more CUnitType& instead of CUnitType*.
Add some Assert on unitType.
2012-11-10 00:06:58 +01:00
Joris
b79c7732fd CanTarget take refence instead of pointer. 2012-11-09 13:50:58 +01:00
Joris
711d2bdd1e Replace CUnitType* by CUnitType& for CDecoVar.
Remove commented function DrawUnitPlayerColor.
2012-11-09 13:40:57 +01:00
Joris
53706b8f74 Some clean up :
Move docu from header to cpp file.
Remove some useless declaration.
space.
2012-11-09 13:14:01 +01:00
Joris
a1f876a304 Fix crash in Editor when defining unit-Type without any (valid) animation. 2012-11-09 12:08:37 +01:00
Joris
03f7503d86 [DOC] : Remove obsolete restriction ('big' TileSize only for building). 2012-11-09 11:23:33 +01:00
Joris
46d2e35a27 Revert local change which should not be commited (pause disabled when mouse leave windows). 2012-09-17 14:46:20 +02:00
Joris
18f5fe9062 Fix last commit. 2012-09-13 19:16:28 +02:00
Joris
64314d4902 CMap::MarkSeenTile take CMapField parameter instead of index or pos. 2012-09-13 19:14:55 +02:00
Joris
37e537eae4 Move some code from unit.cpp to map_fog.cpp. 2012-09-12 11:44:59 +02:00
Joris
1d725f0ff7 UnitsOnTile[un]MarkSeen take MapField instead of index/pos. 2012-09-12 11:23:45 +02:00
Joris
63542119b6 [AStyle] 2012-09-07 18:39:39 +02:00
Joris
0be07616c6 Reorder field. 2012-09-07 18:31:41 +02:00
Joris
61c60d580f Move visibility stuff from CMap into CMapFieldPlayerInfo. 2012-09-07 18:16:07 +02:00
Joris
649701b5ef missing one file in last commit. 2012-09-07 15:41:53 +02:00
Joris
2fcf97a780 Remove CMap::IsFieldExplored, use CMapFieldPlayerInfo::IsExplored instead. 2012-09-07 15:37:36 +02:00
Joris
785466c052 move IsTerrainResourceOnMap from CMap into CMapField. 2012-09-06 21:06:37 +02:00
Joris
51b43dfb5a Fix docking/undocking (was activated for transporter instead of naval unit). 2012-09-06 19:28:24 +02:00
Joris
f3697901e2 Move some methods from CMap into CMapField. 2012-09-06 19:08:49 +02:00
Joris
fee897b0a7 Add CMapField::Save. 2012-09-06 18:33:24 +02:00
Joris
b57817ffd6 Move some private methods of CMap into static function. 2012-09-06 17:58:01 +02:00
Joris
b9e8edebb7 Move CMapField::SeenTile into CMapFieldPlayerInfo::SeenTile. 2012-09-06 16:54:47 +02:00
Joris
1bfedc3116 Split CMapField into CMapFieldPlayerInfo with stuff related to player "knowledge". 2012-09-06 16:06:39 +02:00
Joris
6e64f99ecc [AStyle] 2012-09-05 15:40:45 +02:00
Joris
2fcae8f279 Restore palette (due to ColorCycling) when game ends. 2012-09-04 19:42:58 +02:00
Joris
c6a2fc0a3f Fix warning with gcc. 2012-09-01 08:31:00 +02:00
cybermind
57ecef96a2 [+] AI improvement: it can now gather all units close to enemy, after that it attacks
[-] Fixed missing file in previous commit
[-] Fixed bug when player cancels a building.
[-] Fixed bug with speedup variables in CclGetPlayerData and CclSetPlayerData
2012-08-31 22:55:27 +06:00
Joris
c0e3fe74f3 Clean up:
- Add missing ref.
- Add missing f postfix for float value.
- Replace \r\n by \n.
- Restrict variable scope.
2012-08-31 15:55:58 +02:00
Joris
9ba391ceab Add GetRaceIndexByName into PlayerRace and use it.
Factorize some code in CclDefineGameSounds.
2012-08-31 15:27:00 +02:00
Joris
331d43bee9 Fix compilation error/warning under gcc. 2012-08-31 15:16:50 +02:00
cybermind
e6281977e4 [+] Added MissileContinious (same as MissileStay, but can show it's animation several times and damage with Sleep period).
[+] Added NoRandomPlacing flag in CUnitType to prevent random sprite rotation.
[+] Added BoxOffsetX and BoxOffsetY in CunitType to move selection box around unit.
[+] Abilty to set missile's damage and TTL directly in MissileType
[+] Allow CAnimation_SetVar to change non-CVariable variables (currently works for DamageType)
[+] Added ButtonCheckUnitVariable which allow to show button only if some variables pass the condition.
[+] More flexibility to particles.
[+] Added ninth button to PieMenu.
[+] Added ability to set text color in butrton popups.
[+] Allow CAnimation_SpawnMissile to fire missile at some position instead of unit.
[*] Clean up in UnitOnScreen
[*] Units first call their auto-cast spells rather than attacking.
[*] Change new unit message minimap ping color to green.
[*] Some changes in ai threat calculation code.
[*] Units won't "follow" after buildings (this caused them to "stop" and do nothing)
[*] Set GLMaxTextureSize to 256
[-] Removed hardcoded upgrade-to frame
[-] Fix incorrect AiBuildingRules check.
[-] Fix incorrect CUnitType impacts parse
[-] Fixed bug which made AI's summoned units to be in group 0 and thus didn't allowed them o attack enemies properly.
[-] Fixed bug which not allowed player to save his replay at the end of mission.
[-] Fixed a bug which caused AI to send his defence forces only once. 
[-] Removed assert warning in AiReduceMadeInBuilt
2012-08-30 14:29:55 +06:00
Joris
c73fe049d5 Some clean up. 2012-08-22 13:05:18 +02:00
Joris
00f3a55b5e missing file in previous commit. 2012-08-22 13:04:09 +02:00
Joris
272a5120ec Some clean up :
- Use CColor for FogOfWarColor.
2012-08-22 12:38:58 +02:00
Joris
342ec3af50 Fix a crash when loading 'recycling' units. 2012-08-22 12:02:11 +02:00
Joris
367cf69d79 Fix error reporting (which leads to a crash). 2012-08-22 12:00:17 +02:00
Joris
1e2a32a456 Remove commented include 2012-08-21 19:24:50 +02:00
Joris
d443e3b2d0 Use IntColor instead of Uint32 to remove some SDL dependencies 2012-08-21 18:00:58 +02:00
Joris
e0b2044971 Use IntColor instead of Uint32 to remove some SDL dependencies 2012-08-21 17:17:36 +02:00
Joris
217a28e9e4 Use IntColor instead of Uint32 to remove some SDL dependencies. 2012-08-21 16:42:08 +02:00
Joris
1373658abe Some clean up:
- use std::swap
2012-08-21 16:08:46 +02:00
Joris
6c9ce8fc68 Replace some SDL_Color by CColor. 2012-08-21 15:37:13 +02:00
Joris
d81d378c09 Replace CUnitType::NeutralMinimapColorRGB type from SDL_Color by CColor. 2012-08-21 15:20:08 +02:00
Pali Rohár
e89e3ed2e7 Release version 2.2.7 2012-08-20 15:27:46 +02:00
Pali Rohár
9e666b6bbd stratagus-game-launcher.h - Path to data must be escaped on Windows
This fix problems that on Windows wargus.exe binary do nothing...
2012-08-20 15:25:08 +02:00
Joris
5266501f04 [AStyle] 2012-08-20 13:13:11 +02:00
joris
5710008df0 Move CUnitColors into color.h
use std::vector instead of manual array
2012-08-19 20:03:04 +02:00