Commit graph

15865 commits

Author SHA1 Message Date
Bradley Clemetson
940af410a9 +Added toluapp as a acceptable library to build Stratagus against 2012-11-17 15:10:34 -08:00
Joris
81a3a7d230 [AStyle] 2012-11-14 11:15:45 +01:00
Joris
6174f8a18b Check range value of rgb compound. 2012-11-13 18:19:51 +01:00
Joris
3bf9639407 Add CColor::Parse and use it. 2012-11-13 18:08:04 +01:00
Joris
e6a256b98d Fix comment. 2012-11-13 17:59:57 +01:00
Joris
3b4bab317a Use CclGetPos whenever is possible. 2012-11-13 17:37:42 +01:00
Joris
d90462c010 Use CclGetPos when possible. 2012-11-13 17:17:17 +01:00
Joris
4d4eb8e86a Create CContentType::Parse and add private to its child members. 2012-11-13 17:00:54 +01:00
Joris
777ce6b700 Use some PixelPos, PixelSize. 2012-11-13 16:37:45 +01:00
Joris
fc5ce4aff3 Create CPopupContentType::Parse and add private to its child members. 2012-11-13 16:17:27 +01:00
Joris
4cb696e9a2 Some clean up. 2012-11-13 15:26:10 +01:00
Joris
74868505e9 Use ref for CPopup instead of pointer. 2012-11-13 15:05:45 +01:00
Joris
bb0b8acc06 In SelectTargetUnitsOfAutoCast, compute inCombat only when needed.
change InCombat condition to be true also when enemy can hit the caster.
2012-11-12 12:11:08 +01:00
Joris
753f2427a8 Remove useless abs in abs(v - minv). 2012-11-12 11:56:09 +01:00
Joris
46d3f1d358 Clean up : Add some const. 2012-11-12 11:47:00 +01:00
Joris
acb4a72739 [AStyle] 2012-11-12 11:05:16 +01:00
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