Merge lp:~greg1989/s25rttr/very-low-ressources into lp:~flosoft/s25rttr/trunk
- very-low-ressources
- Merge into trunk
Proposed by
Greg
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | 6958 | ||||
Proposed branch: | lp:~greg1989/s25rttr/very-low-ressources | ||||
Merge into: | lp:~flosoft/s25rttr/trunk | ||||
Diff against target: |
374 lines (+118/-31) 4 files modified
.project (+11/-0) src/GlobalGameSettings.h (+1/-1) src/dskHostGame.cpp (+23/-21) src/nobHQ.cpp (+83/-9) |
||||
To merge this branch: | bzr merge lp:~greg1989/s25rttr/very-low-ressources | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
FloSoft | Approve | ||
Review via email: mp+44953@code.launchpad.net |
Commit message
Description of the change
To post a comment you must log in.
Revision history for this message
FloSoft (flosoft) wrote : | # |
merged in rev6958 into nightly/trunk
review:
Approve
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === added file '.project' | |||
2 | --- .project 1970-01-01 00:00:00 +0000 | |||
3 | +++ .project 2010-12-31 12:24:58 +0000 | |||
4 | @@ -0,0 +1,11 @@ | |||
5 | 1 | <?xml version="1.0" encoding="UTF-8"?> | ||
6 | 2 | <projectDescription> | ||
7 | 3 | <name>s25rttr</name> | ||
8 | 4 | <comment></comment> | ||
9 | 5 | <projects> | ||
10 | 6 | </projects> | ||
11 | 7 | <buildSpec> | ||
12 | 8 | </buildSpec> | ||
13 | 9 | <natures> | ||
14 | 10 | </natures> | ||
15 | 11 | </projectDescription> | ||
16 | 0 | 12 | ||
17 | === modified file 'src/GlobalGameSettings.h' | |||
18 | --- src/GlobalGameSettings.h 2010-07-16 22:00:53 +0000 | |||
19 | +++ src/GlobalGameSettings.h 2010-12-31 12:24:58 +0000 | |||
20 | @@ -35,7 +35,7 @@ | |||
21 | 35 | public: | 35 | public: |
22 | 36 | enum GameSpeed { GS_VERYSLOW = 0,GS_SLOW , GS_NORMAL, GS_FAST, GS_VERYFAST } game_speed; | 36 | enum GameSpeed { GS_VERYSLOW = 0,GS_SLOW , GS_NORMAL, GS_FAST, GS_VERYFAST } game_speed; |
23 | 37 | enum GameObjective { GO_NONE = 0, GO_TOTALDOMINATION, GO_CONQUER3_4 } game_objective; | 37 | enum GameObjective { GO_NONE = 0, GO_TOTALDOMINATION, GO_CONQUER3_4 } game_objective; |
25 | 38 | enum StartWares { SWR_LOW = 0, SWR_NORMAL, SWR_ALOT } start_wares; | 38 | enum StartWares {SWR_VLOW = 0, SWR_LOW, SWR_NORMAL, SWR_ALOT} start_wares; |
26 | 39 | bool lock_teams; | 39 | bool lock_teams; |
27 | 40 | enum Exploration { EXP_DISABLED = 0, EXP_CLASSIC, EXP_FOGOFWAR, EXP_FOGOFWARE_EXPLORED } exploration; | 40 | enum Exploration { EXP_DISABLED = 0, EXP_CLASSIC, EXP_FOGOFWAR, EXP_FOGOFWARE_EXPLORED } exploration; |
28 | 41 | bool team_view; | 41 | bool team_view; |
29 | 42 | 42 | ||
30 | === modified file 'src/dskHostGame.cpp' | |||
31 | --- src/dskHostGame.cpp 2010-07-16 22:00:53 +0000 | |||
32 | +++ src/dskHostGame.cpp 2010-12-31 12:24:58 +0000 | |||
33 | @@ -76,13 +76,13 @@ | |||
34 | 76 | 76 | ||
35 | 77 | // Chatfenster | 77 | // Chatfenster |
36 | 78 | AddChatCtrl(1, 20, 310, 360, 218, TC_GREY, NormalFont); | 78 | AddChatCtrl(1, 20, 310, 360, 218, TC_GREY, NormalFont); |
38 | 79 | // Edit für Chatfenster | 79 | // Edit f�r Chatfenster |
39 | 80 | AddEdit(4, 20, 530, 360, 22, TC_GREY, NormalFont); | 80 | AddEdit(4, 20, 530, 360, 22, TC_GREY, NormalFont); |
40 | 81 | 81 | ||
41 | 82 | // "Spiel starten" | 82 | // "Spiel starten" |
42 | 83 | AddTextButton(2, 600, 560, 180, 22, TC_GREEN2, (GAMECLIENT.IsHost() ? _("Start game") : _("Ready")), NormalFont); | 83 | AddTextButton(2, 600, 560, 180, 22, TC_GREEN2, (GAMECLIENT.IsHost() ? _("Start game") : _("Ready")), NormalFont); |
43 | 84 | 84 | ||
45 | 85 | // "Zurück" | 85 | // "Zur�ck" |
46 | 86 | AddTextButton(3, 400, 560, 180, 22, TC_RED1, _("Return"), NormalFont); | 86 | AddTextButton(3, 400, 560, 180, 22, TC_RED1, _("Return"), NormalFont); |
47 | 87 | 87 | ||
48 | 88 | // "Teams sperren" | 88 | // "Teams sperren" |
49 | @@ -98,7 +98,7 @@ | |||
50 | 98 | 98 | ||
51 | 99 | // umgedrehte Reihenfolge, damit die Listen nicht dahinter sind | 99 | // umgedrehte Reihenfolge, damit die Listen nicht dahinter sind |
52 | 100 | 100 | ||
54 | 101 | // "Aufklärung" | 101 | // "Aufkl�rung" |
55 | 102 | AddText(30, 400, 405, _("Exploration:"), COLOR_YELLOW, 0, NormalFont); | 102 | AddText(30, 400, 405, _("Exploration:"), COLOR_YELLOW, 0, NormalFont); |
56 | 103 | combo = AddComboBox(40, 600, 400, 180, 20, TC_GREY, NormalFont, 100, !GAMECLIENT.IsHost()||GAMECLIENT.IsSavegame()); | 103 | combo = AddComboBox(40, 600, 400, 180, 20, TC_GREY, NormalFont, 100, !GAMECLIENT.IsHost()||GAMECLIENT.IsSavegame()); |
57 | 104 | combo->AddString(_("Off (all visible)")); | 104 | combo->AddString(_("Off (all visible)")); |
58 | @@ -109,10 +109,12 @@ | |||
59 | 109 | // "Waren zu Beginn" | 109 | // "Waren zu Beginn" |
60 | 110 | AddText(31, 400, 375, _("Goods at start:"), COLOR_YELLOW, 0, NormalFont); | 110 | AddText(31, 400, 375, _("Goods at start:"), COLOR_YELLOW, 0, NormalFont); |
61 | 111 | combo = AddComboBox(41, 600, 370, 180, 20, TC_GREY, NormalFont, 100, !GAMECLIENT.IsHost()||GAMECLIENT.IsSavegame()); | 111 | combo = AddComboBox(41, 600, 370, 180, 20, TC_GREY, NormalFont, 100, !GAMECLIENT.IsHost()||GAMECLIENT.IsSavegame()); |
62 | 112 | combo->AddString(_("Very Low")); | ||
63 | 112 | combo->AddString(_("Low")); | 113 | combo->AddString(_("Low")); |
64 | 113 | combo->AddString(_("Normal")); | 114 | combo->AddString(_("Normal")); |
65 | 114 | combo->AddString(_("A lot")); | 115 | combo->AddString(_("A lot")); |
66 | 115 | 116 | ||
67 | 117 | |||
68 | 116 | // "Spielziel" | 118 | // "Spielziel" |
69 | 117 | AddText(32, 400, 345, _("Goals:"), COLOR_YELLOW, 0, NormalFont); | 119 | AddText(32, 400, 345, _("Goals:"), COLOR_YELLOW, 0, NormalFont); |
70 | 118 | combo = AddComboBox(42, 600, 340, 180, 20, TC_GREY, NormalFont, 100, !GAMECLIENT.IsHost()||GAMECLIENT.IsSavegame()); | 120 | combo = AddComboBox(42, 600, 340, 180, 20, TC_GREY, NormalFont, 100, !GAMECLIENT.IsHost()||GAMECLIENT.IsSavegame()); |
71 | @@ -140,7 +142,7 @@ | |||
72 | 140 | glArchivItem_Map *map = static_cast<glArchivItem_Map*>(ai.get(0)); | 142 | glArchivItem_Map *map = static_cast<glArchivItem_Map*>(ai.get(0)); |
73 | 141 | ctrlPreviewMinimap * preview = AddPreviewMinimap(70,560,40,220,220,map); | 143 | ctrlPreviewMinimap * preview = AddPreviewMinimap(70,560,40,220,220,map); |
74 | 142 | 144 | ||
76 | 143 | // Titel der Karte, Y-Position relativ je nach Höhe der Minimap festlegen, daher nochmals danach | 145 | // Titel der Karte, Y-Position relativ je nach H�he der Minimap festlegen, daher nochmals danach |
77 | 144 | // verschieben, da diese Position sonst skaliert wird! | 146 | // verschieben, da diese Position sonst skaliert wird! |
78 | 145 | ctrlText * text = AddText(71,670,0,_("Map: ") + GameClient::inst().GetMapTitle(),COLOR_YELLOW,glArchivItem_Font::DF_CENTER,NormalFont); | 147 | ctrlText * text = AddText(71,670,0,_("Map: ") + GameClient::inst().GetMapTitle(),COLOR_YELLOW,glArchivItem_Font::DF_CENTER,NormalFont); |
79 | 146 | text->Move(text->GetX(false),preview->GetY(false)+preview->GetBottom()+10); | 148 | text->Move(text->GetX(false),preview->GetY(false)+preview->GetBottom()+10); |
80 | @@ -165,14 +167,14 @@ | |||
81 | 165 | 167 | ||
82 | 166 | /////////////////////////////////////////////////////////////////////////////// | 168 | /////////////////////////////////////////////////////////////////////////////// |
83 | 167 | /** | 169 | /** |
85 | 168 | * Größe ändern-Reaktionen die nicht vom Skaling-Mechanismus erfasst werden. | 170 | * Gr��e �ndern-Reaktionen die nicht vom Skaling-Mechanismus erfasst werden. |
86 | 169 | * | 171 | * |
87 | 170 | * @author Divan | 172 | * @author Divan |
88 | 171 | */ | 173 | */ |
89 | 172 | void dskHostGame::Resize_(unsigned short width, unsigned short height) | 174 | void dskHostGame::Resize_(unsigned short width, unsigned short height) |
90 | 173 | { | 175 | { |
93 | 174 | // Text unter der PreviewMinimap verschieben, dessen Höhe von der Höhe der | 176 | // Text unter der PreviewMinimap verschieben, dessen H�he von der H�he der |
94 | 175 | // PreviewMinimap abhängt, welche sich gerade geändert hat. | 177 | // PreviewMinimap abh�ngt, welche sich gerade ge�ndert hat. |
95 | 176 | ctrlPreviewMinimap *preview = GetCtrl<ctrlPreviewMinimap>(70); | 178 | ctrlPreviewMinimap *preview = GetCtrl<ctrlPreviewMinimap>(70); |
96 | 177 | ctrlText *text = GetCtrl<ctrlText>(71); | 179 | ctrlText *text = GetCtrl<ctrlText>(71); |
97 | 178 | assert(preview); | 180 | assert(preview); |
98 | @@ -194,7 +196,7 @@ | |||
99 | 194 | unsigned cy = 80 + row * 30; | 196 | unsigned cy = 80 + row * 30; |
100 | 195 | TextureColor tc = (row&1 ? TC_GREY : TC_GREEN2); | 197 | TextureColor tc = (row&1 ? TC_GREY : TC_GREEN2); |
101 | 196 | 198 | ||
103 | 197 | // Alle Controls erstmal zerstören (die ganze Gruppe) | 199 | // Alle Controls erstmal zerst�ren (die ganze Gruppe) |
104 | 198 | DeleteCtrl(58 - row); | 200 | DeleteCtrl(58 - row); |
105 | 199 | // und neu erzeugen | 201 | // und neu erzeugen |
106 | 200 | ctrlGroup *group = AddGroup(58 - row, scale); | 202 | ctrlGroup *group = AddGroup(58 - row, scale); |
107 | @@ -283,7 +285,7 @@ | |||
108 | 283 | { | 285 | { |
109 | 284 | ctrlComboBox *combo = group->AddComboBox(8, 570, cy, 150, 22, tc, NormalFont, 150, !GAMECLIENT.IsHost()); | 286 | ctrlComboBox *combo = group->AddComboBox(8, 570, cy, 150, 22, tc, NormalFont, 150, !GAMECLIENT.IsHost()); |
110 | 285 | 287 | ||
112 | 286 | // Mit den alten Namen füllen | 288 | // Mit den alten Namen f�llen |
113 | 287 | for(unsigned i = 0; i < GAMECLIENT.GetPlayerCount(); ++i) | 289 | for(unsigned i = 0; i < GAMECLIENT.GetPlayerCount(); ++i) |
114 | 288 | { | 290 | { |
115 | 289 | if(GAMECLIENT.GetPlayer(i)->origin_name.length()) | 291 | if(GAMECLIENT.GetPlayer(i)->origin_name.length()) |
116 | @@ -299,7 +301,7 @@ | |||
117 | 299 | if(player->ps == PS_KI || player->is_host) | 301 | if(player->ps == PS_KI || player->is_host) |
118 | 300 | ping->SetVisible(false); | 302 | ping->SetVisible(false); |
119 | 301 | 303 | ||
121 | 302 | // Felder ausfüllen | 304 | // Felder ausf�llen |
122 | 303 | ChangeNation(row,player->nation); | 305 | ChangeNation(row,player->nation); |
123 | 304 | ChangeTeam(row,player->team); | 306 | ChangeTeam(row,player->team); |
124 | 305 | ChangePing(row); | 307 | ChangePing(row); |
125 | @@ -381,7 +383,7 @@ | |||
126 | 381 | ChangeColor(GAMECLIENT.GetPlayerID(), player->color); | 383 | ChangeColor(GAMECLIENT.GetPlayerID(), player->color); |
127 | 382 | } | 384 | } |
128 | 383 | 385 | ||
130 | 384 | // Start-Farbe der Minimap ändern | 386 | // Start-Farbe der Minimap �ndern |
131 | 385 | } break; | 387 | } break; |
132 | 386 | 388 | ||
133 | 387 | // Team | 389 | // Team |
134 | @@ -457,7 +459,7 @@ | |||
135 | 457 | { | 459 | { |
136 | 458 | switch(ctrl_id) | 460 | switch(ctrl_id) |
137 | 459 | { | 461 | { |
139 | 460 | case 3: // Zurück | 462 | case 3: // Zur�ck |
140 | 461 | { | 463 | { |
141 | 462 | if(GAMECLIENT.IsHost()) | 464 | if(GAMECLIENT.IsHost()) |
142 | 463 | GAMESERVER.Stop(); | 465 | GAMESERVER.Stop(); |
143 | @@ -467,7 +469,7 @@ | |||
144 | 467 | if(LOBBYCLIENT.LoggedIn()) | 469 | if(LOBBYCLIENT.LoggedIn()) |
145 | 468 | WindowManager::inst().Switch(new dskLobby); | 470 | WindowManager::inst().Switch(new dskLobby); |
146 | 469 | else | 471 | else |
148 | 470 | // Hauptmenü zeigen | 472 | // Hauptmen� zeigen |
149 | 471 | WindowManager::inst().Switch(new dskDirectIP); | 473 | WindowManager::inst().Switch(new dskDirectIP); |
150 | 472 | 474 | ||
151 | 473 | } break; | 475 | } break; |
152 | @@ -604,9 +606,9 @@ | |||
153 | 604 | case 43: // Geschwindigkeit | 606 | case 43: // Geschwindigkeit |
154 | 605 | case 42: // Ziel | 607 | case 42: // Ziel |
155 | 606 | case 41: // Waren | 608 | case 41: // Waren |
157 | 607 | case 40: // Aufklärung | 609 | case 40: // Aufkl�rung |
158 | 608 | { | 610 | { |
160 | 609 | // GameSettings wurden verändert, resetten | 611 | // GameSettings wurden ver�ndert, resetten |
161 | 610 | UpdateGGS(); | 612 | UpdateGGS(); |
162 | 611 | } break; | 613 | } break; |
163 | 612 | } | 614 | } |
164 | @@ -628,7 +630,7 @@ | |||
165 | 628 | case 19: // Team-Sicht | 630 | case 19: // Team-Sicht |
166 | 629 | case 20: // Teams | 631 | case 20: // Teams |
167 | 630 | { | 632 | { |
169 | 631 | // GameSettings wurden verändert, resetten | 633 | // GameSettings wurden ver�ndert, resetten |
170 | 632 | UpdateGGS(); | 634 | UpdateGGS(); |
171 | 633 | } break; | 635 | } break; |
172 | 634 | } | 636 | } |
173 | @@ -648,14 +650,14 @@ | |||
174 | 648 | ggs.game_objective = static_cast<GlobalGameSettings::GameObjective>(GetCtrl<ctrlComboBox>(42)->GetSelection()); | 650 | ggs.game_objective = static_cast<GlobalGameSettings::GameObjective>(GetCtrl<ctrlComboBox>(42)->GetSelection()); |
175 | 649 | // Waren zu Beginn | 651 | // Waren zu Beginn |
176 | 650 | ggs.start_wares = static_cast<GlobalGameSettings::StartWares>(GetCtrl<ctrlComboBox>(41)->GetSelection()); | 652 | ggs.start_wares = static_cast<GlobalGameSettings::StartWares>(GetCtrl<ctrlComboBox>(41)->GetSelection()); |
178 | 651 | // Aufklärung | 653 | // Aufkl�rung |
179 | 652 | ggs.exploration = static_cast<GlobalGameSettings::Exploration>(GetCtrl<ctrlComboBox>(40)->GetSelection()); | 654 | ggs.exploration = static_cast<GlobalGameSettings::Exploration>(GetCtrl<ctrlComboBox>(40)->GetSelection()); |
180 | 653 | // Teams gesperrt | 655 | // Teams gesperrt |
181 | 654 | ggs.lock_teams = GetCtrl<ctrlCheck>(20)->GetCheck(); | 656 | ggs.lock_teams = GetCtrl<ctrlCheck>(20)->GetCheck(); |
182 | 655 | // Team sicht | 657 | // Team sicht |
183 | 656 | ggs.team_view = GetCtrl<ctrlCheck>(19)->GetCheck(); | 658 | ggs.team_view = GetCtrl<ctrlCheck>(19)->GetCheck(); |
184 | 657 | 659 | ||
186 | 658 | // An Server übermitteln | 660 | // An Server �bermitteln |
187 | 659 | GameServer::inst().ChangeGlobalGameSettings(ggs); | 661 | GameServer::inst().ChangeGlobalGameSettings(ggs); |
188 | 660 | } | 662 | } |
189 | 661 | 663 | ||
190 | @@ -738,7 +740,7 @@ | |||
191 | 738 | { | 740 | { |
192 | 739 | GetCtrl<ctrlGroup>(58-i)->GetCtrl<ColorControlInterface>(4)->SetColor(COLORS[color]); | 741 | GetCtrl<ctrlGroup>(58-i)->GetCtrl<ColorControlInterface>(4)->SetColor(COLORS[color]); |
193 | 740 | 742 | ||
195 | 741 | // Minimap-Startfarbe ändern | 743 | // Minimap-Startfarbe �ndern |
196 | 742 | if(GetCtrl<ctrlPreviewMinimap>(70)) | 744 | if(GetCtrl<ctrlPreviewMinimap>(70)) |
197 | 743 | GetCtrl<ctrlPreviewMinimap>(70)->SetPlayerColor(i,COLORS[color]); | 745 | GetCtrl<ctrlPreviewMinimap>(70)->SetPlayerColor(i,COLORS[color]); |
198 | 744 | } | 746 | } |
199 | @@ -900,7 +902,7 @@ | |||
200 | 900 | GetCtrl<ctrlComboBox>(42)->SetSelection(static_cast<unsigned short>(ggs.game_objective)); | 902 | GetCtrl<ctrlComboBox>(42)->SetSelection(static_cast<unsigned short>(ggs.game_objective)); |
201 | 901 | // Waren | 903 | // Waren |
202 | 902 | GetCtrl<ctrlComboBox>(41)->SetSelection(static_cast<unsigned short>(ggs.start_wares)); | 904 | GetCtrl<ctrlComboBox>(41)->SetSelection(static_cast<unsigned short>(ggs.start_wares)); |
204 | 903 | // Aufklärung | 905 | // Aufkl�rung |
205 | 904 | GetCtrl<ctrlComboBox>(40)->SetSelection(static_cast<unsigned short>(ggs.exploration)); | 906 | GetCtrl<ctrlComboBox>(40)->SetSelection(static_cast<unsigned short>(ggs.exploration)); |
206 | 905 | // Teams | 907 | // Teams |
207 | 906 | GetCtrl<ctrlCheck>(20)->SetCheck(ggs.lock_teams); | 908 | GetCtrl<ctrlCheck>(20)->SetCheck(ggs.lock_teams); |
208 | @@ -966,7 +968,7 @@ | |||
209 | 966 | 968 | ||
210 | 967 | /////////////////////////////////////////////////////////////////////////////// | 969 | /////////////////////////////////////////////////////////////////////////////// |
211 | 968 | /** | 970 | /** |
213 | 969 | * (Lobby-)Status: Benutzerdefinierter Fehler (kann auch Conn-Loss o.ä sein) | 971 | * (Lobby-)Status: Benutzerdefinierter Fehler (kann auch Conn-Loss o.� sein) |
214 | 970 | * | 972 | * |
215 | 971 | * @author FloSoft | 973 | * @author FloSoft |
216 | 972 | */ | 974 | */ |
217 | 973 | 975 | ||
218 | === modified file 'src/nobHQ.cpp' | |||
219 | --- src/nobHQ.cpp 2010-12-20 23:02:02 +0000 | |||
220 | +++ src/nobHQ.cpp 2010-12-31 12:24:58 +0000 | |||
221 | @@ -45,7 +45,7 @@ | |||
222 | 45 | // Alter mit Bau setzen | 45 | // Alter mit Bau setzen |
223 | 46 | SetAge(); | 46 | SetAge(); |
224 | 47 | 47 | ||
226 | 48 | // ins Militärquadrat einfügen | 48 | // ins Milit�rquadrat einf�gen |
227 | 49 | gwg->GetMilitarySquare(x,y).push_back(this); | 49 | gwg->GetMilitarySquare(x,y).push_back(this); |
228 | 50 | gwg->RecalcTerritory(this,GetMilitaryRadius(),false,true); | 50 | gwg->RecalcTerritory(this,GetMilitaryRadius(),false,true); |
229 | 51 | 51 | ||
230 | @@ -53,8 +53,79 @@ | |||
231 | 53 | // StartWaren setzen ( provisorisch ) | 53 | // StartWaren setzen ( provisorisch ) |
232 | 54 | switch(GameClient::inst().GetGGS().start_wares) | 54 | switch(GameClient::inst().GetGGS().start_wares) |
233 | 55 | { | 55 | { |
234 | 56 | //sehr wenig | ||
235 | 57 | |||
236 | 58 | case 0: | ||
237 | 59 | goods.goods[GD_BEER] = 0; | ||
238 | 60 | goods.goods[GD_TONGS] = 1; | ||
239 | 61 | goods.goods[GD_HAMMER] = 4; | ||
240 | 62 | goods.goods[GD_AXE] = 1; | ||
241 | 63 | goods.goods[GD_SAW] = 0; | ||
242 | 64 | goods.goods[GD_PICKAXE] = 0; | ||
243 | 65 | goods.goods[GD_SHOVEL] = 1; | ||
244 | 66 | goods.goods[GD_CRUCIBLE] = 1; | ||
245 | 67 | goods.goods[GD_RODANDLINE] = 1;//?? | ||
246 | 68 | goods.goods[GD_SCYTHE] = 2;//?? | ||
247 | 69 | goods.goods[GD_WATEREMPTY] = 0; | ||
248 | 70 | goods.goods[GD_WATER] = 0; | ||
249 | 71 | goods.goods[GD_CLEAVER] = 0; | ||
250 | 72 | goods.goods[GD_ROLLINGPIN] = 1; | ||
251 | 73 | goods.goods[GD_BOW] = 0; | ||
252 | 74 | goods.goods[GD_BOAT] = 0; | ||
253 | 75 | goods.goods[GD_SWORD] = 0; | ||
254 | 76 | goods.goods[GD_IRON] = 0; | ||
255 | 77 | goods.goods[GD_FLOUR] = 0; | ||
256 | 78 | goods.goods[GD_FISH] = 1; | ||
257 | 79 | goods.goods[GD_BREAD] = 2; | ||
258 | 80 | goods.goods[GD_SHIELDROMANS] = 0; | ||
259 | 81 | goods.goods[GD_WOOD] = 6; | ||
260 | 82 | goods.goods[GD_BOARDS] = 11; | ||
261 | 83 | goods.goods[GD_STONES] = 17; | ||
262 | 84 | goods.goods[GD_SHIELDVIKINGS] = 0; | ||
263 | 85 | goods.goods[GD_SHIELDAFRICANS] = 0; | ||
264 | 86 | goods.goods[GD_GRAIN] = 0; | ||
265 | 87 | goods.goods[GD_COINS] = 0; | ||
266 | 88 | goods.goods[GD_GOLD] = 0; | ||
267 | 89 | goods.goods[GD_IRONORE] = 4; | ||
268 | 90 | goods.goods[GD_COAL] = 4; | ||
269 | 91 | goods.goods[GD_MEAT] = 0; | ||
270 | 92 | goods.goods[GD_HAM] = 0; | ||
271 | 93 | goods.goods[GD_SHIELDJAPANESE] = 0; | ||
272 | 94 | |||
273 | 95 | goods.people[JOB_HELPER] = 13; | ||
274 | 96 | goods.people[JOB_WOODCUTTER] = 2; | ||
275 | 97 | goods.people[JOB_FISHER] = 0; | ||
276 | 98 | goods.people[JOB_FORESTER] = 1; | ||
277 | 99 | goods.people[JOB_CARPENTER] = 1; | ||
278 | 100 | goods.people[JOB_STONEMASON] = 1; | ||
279 | 101 | goods.people[JOB_HUNTER] = 1; | ||
280 | 102 | goods.people[JOB_FARMER] = 0; | ||
281 | 103 | goods.people[JOB_MILLER] = 0; | ||
282 | 104 | goods.people[JOB_BAKER] = 0; | ||
283 | 105 | goods.people[JOB_BUTCHER] = 0; | ||
284 | 106 | goods.people[JOB_MINER] = 2; | ||
285 | 107 | goods.people[JOB_BREWER] = 0; | ||
286 | 108 | goods.people[JOB_PIGBREEDER] = 0; | ||
287 | 109 | goods.people[JOB_DONKEYBREEDER] = 0; | ||
288 | 110 | goods.people[JOB_IRONFOUNDER] = 0; | ||
289 | 111 | goods.people[JOB_MINTER] = 0; | ||
290 | 112 | goods.people[JOB_METALWORKER] = 0; | ||
291 | 113 | goods.people[JOB_ARMORER] = 1; | ||
292 | 114 | goods.people[JOB_BUILDER] = 2; | ||
293 | 115 | goods.people[JOB_PLANER] = 1; | ||
294 | 116 | goods.people[JOB_PRIVATE] = 13; | ||
295 | 117 | goods.people[JOB_PRIVATEFIRSTCLASS] = 0; | ||
296 | 118 | goods.people[JOB_SERGEANT] = 0; | ||
297 | 119 | goods.people[JOB_OFFICER] = 0; | ||
298 | 120 | goods.people[JOB_GENERAL] = 0; | ||
299 | 121 | goods.people[JOB_GEOLOGIST] = 2; | ||
300 | 122 | goods.people[JOB_SHIPWRIGHT] = 0; | ||
301 | 123 | goods.people[JOB_SCOUT] = 1; | ||
302 | 124 | goods.people[JOB_PACKDONKEY] = 2; | ||
303 | 125 | break; | ||
304 | 126 | |||
305 | 56 | // Wenig | 127 | // Wenig |
307 | 57 | case 0: | 128 | case 1: |
308 | 58 | 129 | ||
309 | 59 | goods.goods[GD_BEER] = 0; | 130 | goods.goods[GD_BEER] = 0; |
310 | 60 | goods.goods[GD_TONGS] = 0; | 131 | goods.goods[GD_TONGS] = 0; |
311 | @@ -125,7 +196,7 @@ | |||
312 | 125 | break; | 196 | break; |
313 | 126 | 197 | ||
314 | 127 | // Mittel | 198 | // Mittel |
316 | 128 | case 1: | 199 | case 2: |
317 | 129 | 200 | ||
318 | 130 | goods.goods[GD_BEER] = 6; | 201 | goods.goods[GD_BEER] = 6; |
319 | 131 | goods.goods[GD_TONGS] = 0; | 202 | goods.goods[GD_TONGS] = 0; |
320 | @@ -196,7 +267,7 @@ | |||
321 | 196 | break; | 267 | break; |
322 | 197 | 268 | ||
323 | 198 | // Viel | 269 | // Viel |
325 | 199 | case 2: | 270 | case 3: |
326 | 200 | goods.goods[GD_BEER] = 12; | 271 | goods.goods[GD_BEER] = 12; |
327 | 201 | goods.goods[GD_TONGS] = 0; | 272 | goods.goods[GD_TONGS] = 0; |
328 | 202 | goods.goods[GD_HAMMER] = 32; | 273 | goods.goods[GD_HAMMER] = 32; |
329 | @@ -264,6 +335,9 @@ | |||
330 | 264 | goods.people[JOB_SCOUT] = 4; | 335 | goods.people[JOB_SCOUT] = 4; |
331 | 265 | goods.people[JOB_PACKDONKEY] = 16; | 336 | goods.people[JOB_PACKDONKEY] = 16; |
332 | 266 | break; | 337 | break; |
333 | 338 | |||
334 | 339 | |||
335 | 340 | |||
336 | 267 | } | 341 | } |
337 | 268 | 342 | ||
338 | 269 | real_goods = goods; | 343 | real_goods = goods; |
339 | @@ -280,10 +354,10 @@ | |||
340 | 280 | Destroy_nobBaseWarehouse(); | 354 | Destroy_nobBaseWarehouse(); |
341 | 281 | 355 | ||
342 | 282 | // Land drumherum neu berechnen (nur wenn es schon besetzt wurde!) | 356 | // Land drumherum neu berechnen (nur wenn es schon besetzt wurde!) |
344 | 283 | // Nach dem BaseDestroy erst, da in diesem erst das Feuer gesetzt, die Straße gelöscht wird usw. | 357 | // Nach dem BaseDestroy erst, da in diesem erst das Feuer gesetzt, die Stra�e gel�scht wird usw. |
345 | 284 | gwg->RecalcTerritory(this,MILITARY_RADIUS[GetSize()],true, false); | 358 | gwg->RecalcTerritory(this,MILITARY_RADIUS[GetSize()],true, false); |
346 | 285 | 359 | ||
348 | 286 | // Wieder aus dem Militärquadrat rauswerfen | 360 | // Wieder aus dem Milit�rquadrat rauswerfen |
349 | 287 | gwg->GetMilitarySquare(x,y).erase(this); | 361 | gwg->GetMilitarySquare(x,y).erase(this); |
350 | 288 | } | 362 | } |
351 | 289 | 363 | ||
352 | @@ -294,7 +368,7 @@ | |||
353 | 294 | 368 | ||
354 | 295 | nobHQ::nobHQ(SerializedGameData * sgd, const unsigned obj_id) : nobBaseWarehouse(sgd,obj_id) | 369 | nobHQ::nobHQ(SerializedGameData * sgd, const unsigned obj_id) : nobBaseWarehouse(sgd,obj_id) |
355 | 296 | { | 370 | { |
357 | 297 | // ins Militärquadrat einfügen | 371 | // ins Milit�rquadrat einf�gen |
358 | 298 | gwg->GetMilitarySquare(x,y).push_back(this); | 372 | gwg->GetMilitarySquare(x,y).push_back(this); |
359 | 299 | 373 | ||
360 | 300 | // Startpos setzen | 374 | // Startpos setzen |
361 | @@ -304,11 +378,11 @@ | |||
362 | 304 | 378 | ||
363 | 305 | void nobHQ::Draw(int x,int y) | 379 | void nobHQ::Draw(int x,int y) |
364 | 306 | { | 380 | { |
366 | 307 | // Gebäude an sich zeichnen | 381 | // Geb�ude an sich zeichnen |
367 | 308 | DrawBaseBuilding(x,y); | 382 | DrawBaseBuilding(x,y); |
368 | 309 | 383 | ||
369 | 310 | 384 | ||
371 | 311 | // 4 Fähnchen zeichnen | 385 | // 4 F�hnchen zeichnen |
372 | 312 | for(unsigned i = min<unsigned>(GetSoldiersCount()+ | 386 | for(unsigned i = min<unsigned>(GetSoldiersCount()+ |
373 | 313 | reserve_soldiers_available[0]+reserve_soldiers_available[1]+reserve_soldiers_available[2]+reserve_soldiers_available[3]+reserve_soldiers_available[4] | 387 | reserve_soldiers_available[0]+reserve_soldiers_available[1]+reserve_soldiers_available[2]+reserve_soldiers_available[3]+reserve_soldiers_available[4] |
374 | 314 | ,4);i;--i) | 388 | ,4);i;--i) |
Hi,
please clean up your files (you killed all german "umlauts" because of stupid eclipse utf-8 file handling)
I'm back in a few days, then I will merge your changes. I hope you can cleanup the patch until then