Changeset 28
- Timestamp:
- Oct 3, 2011, 8:17:16 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UMainForm.pas
r24 r28 72 72 73 73 uses 74 UMapForm, UNewGameForm; 74 UMapForm, UNewGameForm, UDebugForm; 75 76 resourcestring 77 SRound = '%0:s of %1:s'; 75 78 76 79 { TMainForm } … … 91 94 // IntToStr(TPlayer(Engine.Players[0]).Direction); 92 95 StatusBar1.Panels[2].Text := FloatToStr(RoundTo(DrawDuration / OneMillisecond, -2)); 93 //StatusBar1.Panels[3].Text := IntToStr(TPlayer(Engine.Players[0]).Bullets.Count); 96 StatusBar1.Panels[3].Text := Format(SRound, [IntToStr(Engine.CurrentRound), 97 IntToStr(Engine.MaxRound)]); 94 98 finally 95 99 Engine.Lock.Release; … … 200 204 PersistentForm.Load(Self); 201 205 CoolTranslator1.Language := CoolTranslator1.Languages.SearchByCode('cs'); 206 DebugForm.Show; 202 207 end; 203 208 … … 209 214 procedure TMainForm.Image1Resize(Sender: TObject); 210 215 begin 211 Image1.Picture.Bitmap.SetSize(Image1.Width, Image1.Height); 212 Engine.ResizePlayerFrames; 216 try 217 Engine.Lock.Acquire; 218 Image1.Picture.Bitmap.SetSize(Image1.Width, Image1.Height); 219 Engine.ResizePlayerFrames; 220 finally 221 Engine.Lock.Release; 222 end; 213 223 end; 214 224 -
trunk/Languages/tunneler.cs.po
r23 r28 9 9 "MIME-Version: 1.0\n" 10 10 "Content-Transfer-Encoding: 8bit\n" 11 12 #: TDEBUGFORM.DEBUGFORM.CAPTION 13 msgid "Debug" 14 msgstr "" 15 16 #: TDEBUGFORM.LISTVIEW1.COLUMNS[0].CAPTION 17 msgctxt "TDEBUGFORM.LISTVIEW1.COLUMNS[0].CAPTION" 18 msgid "Player" 19 msgstr "" 20 21 #: TDEBUGFORM.LISTVIEW1.COLUMNS[1].CAPTION 22 msgid "Frame size" 23 msgstr "" 24 25 #: TDEBUGFORM.LISTVIEW1.COLUMNS[2].CAPTION 26 msgid "Bullets" 27 msgstr "" 28 29 #: TGAMERESULTSFORM.GAMERESULTSFORM.CAPTION 30 msgid "Final results" 31 msgstr "" 11 32 12 33 #: TMAINFORM.AABOUT.CAPTION … … 81 102 82 103 #: ucore.splayer 104 msgctxt "ucore.splayer" 83 105 msgid "Player" 106 msgstr "" 107 108 #: umainform.sround 109 msgid "%0:s of %1:s" 84 110 msgstr "" 85 111 -
trunk/Languages/tunneler.po
r23 r28 1 1 msgid "" 2 2 msgstr "Content-Type: text/plain; charset=UTF-8" 3 4 #: TDEBUGFORM.DEBUGFORM.CAPTION 5 msgid "Debug" 6 msgstr "" 7 8 #: TDEBUGFORM.LISTVIEW1.COLUMNS[0].CAPTION 9 msgctxt "TDEBUGFORM.LISTVIEW1.COLUMNS[0].CAPTION" 10 msgid "Player" 11 msgstr "" 12 13 #: TDEBUGFORM.LISTVIEW1.COLUMNS[1].CAPTION 14 msgid "Frame size" 15 msgstr "" 16 17 #: TDEBUGFORM.LISTVIEW1.COLUMNS[2].CAPTION 18 msgid "Bullets" 19 msgstr "" 20 21 #: TGAMERESULTSFORM.GAMERESULTSFORM.CAPTION 22 msgid "Final results" 23 msgstr "" 3 24 4 25 #: TMAINFORM.AABOUT.CAPTION … … 73 94 74 95 #: ucore.splayer 96 msgctxt "ucore.splayer" 75 97 msgid "Player" 98 msgstr "" 99 100 #: umainform.sround 101 msgid "%0:s of %1:s" 76 102 msgstr "" 77 103 -
trunk/UCore.pas
r27 r28 103 103 Engine: TEngine; 104 104 Position: TPoint; 105 Score: Integer; 105 106 Direction: Integer; 106 107 ScreenFrame: TRectangle; … … 189 190 FBitmap: TBitmap; 190 191 FBitmapLock: TCriticalSection; 192 FOnGameEnd: TNotifyEvent; 191 193 FRedrawPending: Boolean; 192 194 FBitmapLower: TBitmapTColor; … … 209 211 DigMasks: TListObject; // TListObject<TMatrixByte> 210 212 Lock: TCriticalSection; 213 CurrentRound: Integer; 214 MaxRound: Integer; 215 procedure CheckGameEnd; 211 216 constructor Create; 212 217 destructor Destroy; override; … … 215 220 procedure Draw(Thread: TVirtualThread); 216 221 procedure NewGame; 222 procedure NewRound; 217 223 property Bitmap: TBitmap read FBitmap write SetBitmap; 218 224 property Active: Boolean read FActive write SetActive; 225 property OnGameEnd: TNotifyEvent read FOnGameEnd write FOnGameEnd; 219 226 end; 220 227 … … 938 945 ItemsXY[ScreenFrame.Left + I, ScreenFrame.Bottom - 1] := clBlack 939 946 else ItemsXY[ScreenFrame.Left + I, ScreenFrame.Bottom - 1] := clAqua; 947 948 for I := ScreenFrame.Left to ScreenFrame.Right - 1 do 949 ItemsXY[I, 0] := $010101 * I; 940 950 end; 941 951 end; … … 994 1004 Energy := 0; 995 1005 Shield := 0; 1006 //Synchronize(Engine.CheckGameEnd); 996 1007 end; 997 1008 … … 1226 1237 BytePerRow: Integer; 1227 1238 RawImage: TRawImage; 1228 Color: Int eger;1239 Color: Int64; 1229 1240 Shift: TPoint; 1230 1241 XDiv, XMod, XAcc: Integer; … … 1237 1248 if Assigned(FBitmap) then 1238 1249 try 1250 Lock.Acquire; 1239 1251 Bitmap.BeginUpdate; 1240 1252 RawImage := Bitmap.RawImage; … … 1283 1295 Inc(SubPixelSizeX); 1284 1296 end; 1285 1286 Color := SwapBRComponent(FBitmapLower.Pixels[X, Y]); 1297 Color := FBitmapLower.Pixels[X, Y] and $ffffff; 1298 1299 Color := SwapBRComponent(Color); 1287 1300 1288 1301 // Draw large pixel … … 1302 1315 finally 1303 1316 FBitmap.EndUpdate; 1317 Lock.Release; 1304 1318 end; 1305 1319 end; … … 1464 1478 InitTanks; 1465 1479 Name := SPlayer + ' ' + IntToStr(I + 1); 1466 Enabled := True; 1480 if I < 8 then Enabled := True; 1481 end; 1482 end; 1483 1484 procedure TEngine.CheckGameEnd; 1485 var 1486 AliveCount: Integer; 1487 I: Integer; 1488 begin 1489 AliveCount := 0; 1490 for I := 0 to Players.Count - 1 do 1491 with TPlayer(Players[I]) do 1492 if not Exploded then Inc(AliveCount); 1493 if AliveCount <= 1 then begin 1494 for I := 0 to Players.Count - 1 do 1495 with TPlayer(Players[I]) do 1496 if not Exploded then Inc(Score); 1497 if CurrentRound < MaxRound then 1498 NewRound else 1499 if Assigned(FOnGameEnd) then 1500 FOnGameEnd(Self); 1467 1501 end; 1468 1502 end; … … 1513 1547 InitDigMasks; 1514 1548 Redraw; 1549 MaxRound := 3; 1515 1550 end; 1516 1551 … … 1574 1609 for I := 0 to PlayerPool.Count - 1 do 1575 1610 with TPlayer(PlayerPool[I]) do 1576 if Enabled then 1611 if Enabled then begin 1577 1612 Players.Add(PlayerPool[I]); 1613 Score := 0; 1614 end; 1578 1615 ResizePlayerFrames; 1579 1616 CurrentRound := 0; 1617 NewRound; 1618 1619 Active := True; 1620 end; 1621 1622 procedure TEngine.NewRound; 1623 var 1624 I: Integer; 1625 begin 1626 Active := False; 1580 1627 World.Generate; 1581 1628 1582 1629 for I := 0 to Players.Count - 1 do 1583 with TPlayer(Players[I]) do 1630 with TPlayer(Players[I]) do begin 1584 1631 Init; 1632 end; 1585 1633 ClearBackground := True; 1586 1634 Redraw; -
trunk/tunneler.lpi
r27 r28 17 17 <StringTable ProductVersion=""/> 18 18 </VersionInfo> 19 <BuildModes Count="1"> 20 <Item1 Name="default" Default="True"/> 19 <BuildModes Count="2" Active="Debug"> 20 <Item1 Name="Debug" Default="True"/> 21 <Item2 Name="Release"> 22 <CompilerOptions> 23 <Version Value="9"/> 24 <Target> 25 <Filename Value="tunneler"/> 26 </Target> 27 <SearchPaths> 28 <IncludeFiles Value="$(ProjOutDir)"/> 29 <OtherUnitFiles Value="Common;Forms"/> 30 <UnitOutputDirectory Value="lib/$(TargetCPU)-$(TargetOS)"/> 31 </SearchPaths> 32 <CodeGeneration> 33 <SmartLinkUnit Value="True"/> 34 <Checks> 35 <IOChecks Value="True"/> 36 <RangeChecks Value="True"/> 37 <OverflowChecks Value="True"/> 38 <StackChecks Value="True"/> 39 </Checks> 40 <VerifyObjMethodCallValidity Value="True"/> 41 </CodeGeneration> 42 <Linking> 43 <Debugging> 44 <UseLineInfoUnit Value="False"/> 45 </Debugging> 46 <LinkSmart Value="True"/> 47 <Options> 48 <Win32> 49 <GraphicApplication Value="True"/> 50 </Win32> 51 </Options> 52 </Linking> 53 <Other> 54 <CompilerMessages> 55 <UseMsgFile Value="True"/> 56 </CompilerMessages> 57 <CompilerPath Value="$(CompPath)"/> 58 </Other> 59 </CompilerOptions> 60 </Item2> 21 61 </BuildModes> 22 62 <PublishOptions> … … 42 82 </Item3> 43 83 </RequiredPackages> 44 <Units Count=" 73">84 <Units Count="83"> 45 85 <Unit0> 46 86 <Filename Value="tunneler.lpr"/> 47 87 <IsPartOfProject Value="True"/> 48 88 <UnitName Value="tunneler"/> 49 <WindowIndex Value="0"/> 50 <TopLine Value="1"/> 51 <CursorPos X="61" Y="10"/> 52 <UsageCount Value="128"/> 89 <EditorIndex Value="8"/> 90 <WindowIndex Value="0"/> 91 <TopLine Value="1"/> 92 <CursorPos X="27" Y="5"/> 93 <UsageCount Value="139"/> 94 <Loaded Value="True"/> 53 95 </Unit0> 54 96 <Unit1> … … 60 102 <TopLine Value="203"/> 61 103 <CursorPos X="68" Y="209"/> 62 <UsageCount Value=" 90"/>104 <UsageCount Value="89"/> 63 105 </Unit1> 64 106 <Unit2> … … 69 111 <EditorIndex Value="0"/> 70 112 <WindowIndex Value="0"/> 71 <TopLine Value="1 2"/>72 <CursorPos X="1 " Y="17"/>73 <UsageCount Value="1 28"/>113 <TopLine Value="1467"/> 114 <CursorPos X="13" Y="1480"/> 115 <UsageCount Value="139"/> 74 116 <Loaded Value="True"/> 75 117 </Unit2> … … 80 122 <TopLine Value="35"/> 81 123 <CursorPos X="20" Y="51"/> 82 <UsageCount Value=" 4"/>124 <UsageCount Value="3"/> 83 125 </Unit3> 84 126 <Unit4> … … 88 130 <TopLine Value="52"/> 89 131 <CursorPos X="18" Y="57"/> 90 <UsageCount Value=" 3"/>132 <UsageCount Value="2"/> 91 133 </Unit4> 92 134 <Unit5> … … 96 138 <TopLine Value="1"/> 97 139 <CursorPos X="61" Y="11"/> 98 <UsageCount Value="1 8"/>140 <UsageCount Value="17"/> 99 141 </Unit5> 100 142 <Unit6> … … 103 145 <TopLine Value="19"/> 104 146 <CursorPos X="4" Y="36"/> 105 <UsageCount Value=" 10"/>147 <UsageCount Value="9"/> 106 148 </Unit6> 107 149 <Unit7> … … 111 153 <TopLine Value="2417"/> 112 154 <CursorPos X="3" Y="2459"/> 113 <UsageCount Value=" 6"/>155 <UsageCount Value="5"/> 114 156 </Unit7> 115 157 <Unit8> … … 118 160 <TopLine Value="453"/> 119 161 <CursorPos X="1" Y="470"/> 120 <UsageCount Value=" 10"/>162 <UsageCount Value="9"/> 121 163 </Unit8> 122 164 <Unit9> … … 125 167 <TopLine Value="34"/> 126 168 <CursorPos X="1" Y="54"/> 127 <UsageCount Value=" 2"/>169 <UsageCount Value="1"/> 128 170 </Unit9> 129 171 <Unit10> … … 133 175 <TopLine Value="1314"/> 134 176 <CursorPos X="42" Y="1327"/> 135 <UsageCount Value=" 6"/>177 <UsageCount Value="5"/> 136 178 </Unit10> 137 179 <Unit11> 138 180 <Filename Value="../../PascalClassLibrary/Generics/TemplateGenerics/Generic/GenericMatrix.inc"/> 139 <EditorIndex Value=" 2"/>140 <WindowIndex Value="0"/> 141 <TopLine Value=" 449"/>142 <CursorPos X=" 17" Y="468"/>143 <UsageCount Value="5 2"/>181 <EditorIndex Value="4"/> 182 <WindowIndex Value="0"/> 183 <TopLine Value="121"/> 184 <CursorPos X="57" Y="141"/> 185 <UsageCount Value="55"/> 144 186 <Loaded Value="True"/> 145 187 </Unit11> … … 150 192 <TopLine Value="16"/> 151 193 <CursorPos X="22" Y="33"/> 152 <UsageCount Value="1 6"/>194 <UsageCount Value="15"/> 153 195 </Unit12> 154 196 <Unit13> … … 157 199 <TopLine Value="16"/> 158 200 <CursorPos X="19" Y="32"/> 159 <UsageCount Value=" 4"/>201 <UsageCount Value="3"/> 160 202 </Unit13> 161 203 <Unit14> … … 165 207 <TopLine Value="54"/> 166 208 <CursorPos X="3" Y="70"/> 167 <UsageCount Value=" 7"/>209 <UsageCount Value="6"/> 168 210 </Unit14> 169 211 <Unit15> 170 212 <Filename Value="../../PascalClassLibrary/Generics/TemplateGenerics/Generic/GenericList.inc"/> 171 <EditorIndex Value="1"/>172 213 <WindowIndex Value="0"/> 173 214 <TopLine Value="115"/> 174 215 <CursorPos X="1" Y="134"/> 175 <UsageCount Value="27"/> 176 <Loaded Value="True"/> 216 <UsageCount Value="26"/> 177 217 </Unit15> 178 218 <Unit16> … … 181 221 <TopLine Value="783"/> 182 222 <CursorPos X="3" Y="785"/> 183 <UsageCount Value="1 "/>223 <UsageCount Value="10"/> 184 224 </Unit16> 185 225 <Unit17> … … 188 228 <TopLine Value="498"/> 189 229 <CursorPos X="11" Y="515"/> 190 <UsageCount Value=" 5"/>230 <UsageCount Value="4"/> 191 231 </Unit17> 192 232 <Unit18> … … 196 236 <TopLine Value="665"/> 197 237 <CursorPos X="27" Y="682"/> 198 <UsageCount Value=" 3"/>238 <UsageCount Value="2"/> 199 239 </Unit18> 200 240 <Unit19> … … 203 243 <TopLine Value="112"/> 204 244 <CursorPos X="10" Y="114"/> 205 <UsageCount Value=" 3"/>245 <UsageCount Value="2"/> 206 246 </Unit19> 207 247 <Unit20> … … 211 251 <TopLine Value="1035"/> 212 252 <CursorPos X="15" Y="1052"/> 213 <UsageCount Value=" 2"/>253 <UsageCount Value="1"/> 214 254 </Unit20> 215 255 <Unit21> … … 218 258 <TopLine Value="3003"/> 219 259 <CursorPos X="3" Y="3010"/> 220 <UsageCount Value=" 2"/>260 <UsageCount Value="1"/> 221 261 </Unit21> 222 262 <Unit22> … … 225 265 <TopLine Value="392"/> 226 266 <CursorPos X="1" Y="411"/> 227 <UsageCount Value=" 2"/>267 <UsageCount Value="1"/> 228 268 </Unit22> 229 269 <Unit23> … … 232 272 <TopLine Value="85"/> 233 273 <CursorPos X="10" Y="102"/> 234 <UsageCount Value=" 4"/>274 <UsageCount Value="3"/> 235 275 </Unit23> 236 276 <Unit24> … … 239 279 <TopLine Value="157"/> 240 280 <CursorPos X="3" Y="159"/> 241 <UsageCount Value=" 4"/>281 <UsageCount Value="3"/> 242 282 </Unit24> 243 283 <Unit25> … … 246 286 <TopLine Value="4360"/> 247 287 <CursorPos X="19" Y="4365"/> 248 <UsageCount Value=" 10"/>288 <UsageCount Value="9"/> 249 289 </Unit25> 250 290 <Unit26> … … 253 293 <TopLine Value="4226"/> 254 294 <CursorPos X="1" Y="4254"/> 255 <UsageCount Value=" 2"/>295 <UsageCount Value="1"/> 256 296 </Unit26> 257 297 <Unit27> … … 263 303 <TopLine Value="15"/> 264 304 <CursorPos X="39" Y="45"/> 265 <UsageCount Value="6 9"/>305 <UsageCount Value="68"/> 266 306 </Unit27> 267 307 <Unit28> … … 270 310 <TopLine Value="858"/> 271 311 <CursorPos X="1" Y="875"/> 272 <UsageCount Value=" 3"/>312 <UsageCount Value="2"/> 273 313 </Unit28> 274 314 <Unit29> … … 277 317 <TopLine Value="2102"/> 278 318 <CursorPos X="1" Y="2119"/> 279 <UsageCount Value=" 3"/>319 <UsageCount Value="2"/> 280 320 </Unit29> 281 321 <Unit30> … … 284 324 <TopLine Value="58"/> 285 325 <CursorPos X="14" Y="75"/> 286 <UsageCount Value="1 2"/>326 <UsageCount Value="11"/> 287 327 </Unit30> 288 328 <Unit31> … … 291 331 <TopLine Value="1"/> 292 332 <CursorPos X="34" Y="12"/> 293 <UsageCount Value=" 8"/>333 <UsageCount Value="7"/> 294 334 </Unit31> 295 335 <Unit32> … … 299 339 <TopLine Value="3131"/> 300 340 <CursorPos X="42" Y="3148"/> 301 <UsageCount Value="1 3"/>341 <UsageCount Value="12"/> 302 342 </Unit32> 303 343 <Unit33> … … 307 347 <TopLine Value="104"/> 308 348 <CursorPos X="3" Y="91"/> 309 <UsageCount Value=" 4"/>349 <UsageCount Value="3"/> 310 350 </Unit33> 311 351 <Unit34> … … 314 354 <TopLine Value="325"/> 315 355 <CursorPos X="3" Y="327"/> 316 <UsageCount Value=" 4"/>356 <UsageCount Value="3"/> 317 357 </Unit34> 318 358 <Unit35> … … 322 362 <TopLine Value="173"/> 323 363 <CursorPos X="5" Y="190"/> 324 <UsageCount Value=" 5"/>364 <UsageCount Value="4"/> 325 365 </Unit35> 326 366 <Unit36> 327 367 <Filename Value="../../PascalClassLibrary/Generics/TemplateGenerics/Generic/GenericBitmap.inc"/> 328 <WindowIndex Value="0"/> 329 <TopLine Value="1"/> 330 <CursorPos X="20" Y="26"/> 331 <UsageCount Value="35"/> 368 <EditorIndex Value="3"/> 369 <WindowIndex Value="0"/> 370 <TopLine Value="11"/> 371 <CursorPos X="17" Y="26"/> 372 <UsageCount Value="38"/> 373 <Loaded Value="True"/> 332 374 </Unit36> 333 375 <Unit37> 334 376 <Filename Value="../../PascalClassLibrary/Generics/TemplateGenerics/Specialized/SpecializedBitmap.pas"/> 335 377 <UnitName Value="SpecializedBitmap"/> 336 <WindowIndex Value="0"/> 337 <TopLine Value="47"/> 378 <EditorIndex Value="2"/> 379 <WindowIndex Value="0"/> 380 <TopLine Value="7"/> 338 381 <CursorPos X="22" Y="21"/> 339 <UsageCount Value="24"/> 382 <UsageCount Value="27"/> 383 <Loaded Value="True"/> 340 384 </Unit37> 341 385 <Unit38> … … 345 389 <TopLine Value="91"/> 346 390 <CursorPos X="19" Y="107"/> 347 <UsageCount Value=" 6"/>391 <UsageCount Value="5"/> 348 392 </Unit38> 349 393 <Unit39> … … 352 396 <TopLine Value="1"/> 353 397 <CursorPos X="1" Y="1"/> 354 <UsageCount Value=" 5"/>398 <UsageCount Value="4"/> 355 399 </Unit39> 356 400 <Unit40> … … 359 403 <TopLine Value="158"/> 360 404 <CursorPos X="23" Y="175"/> 361 <UsageCount Value=" 4"/>405 <UsageCount Value="3"/> 362 406 </Unit40> 363 407 <Unit41> … … 367 411 <TopLine Value="1"/> 368 412 <CursorPos X="9" Y="69"/> 369 <UsageCount Value=" 4"/>413 <UsageCount Value="3"/> 370 414 </Unit41> 371 415 <Unit42> … … 375 419 <TopLine Value="1"/> 376 420 <CursorPos X="1" Y="1"/> 377 <UsageCount Value=" 4"/>421 <UsageCount Value="3"/> 378 422 </Unit42> 379 423 <Unit43> … … 383 427 <TopLine Value="1"/> 384 428 <CursorPos X="14" Y="20"/> 385 <UsageCount Value=" 4"/>429 <UsageCount Value="3"/> 386 430 </Unit43> 387 431 <Unit44> … … 389 433 <IsPartOfProject Value="True"/> 390 434 <UnitName Value="UPlatform"/> 391 <UsageCount Value=" 87"/>435 <UsageCount Value="98"/> 392 436 </Unit44> 393 437 <Unit45> … … 397 441 <TopLine Value="929"/> 398 442 <CursorPos X="5" Y="932"/> 399 <UsageCount Value=" 9"/>443 <UsageCount Value="8"/> 400 444 </Unit45> 401 445 <Unit46> … … 405 449 <TopLine Value="1"/> 406 450 <CursorPos X="50" Y="5"/> 407 <UsageCount Value=" 8"/>451 <UsageCount Value="7"/> 408 452 </Unit46> 409 453 <Unit47> … … 413 457 <TopLine Value="1"/> 414 458 <CursorPos X="36" Y="15"/> 415 <UsageCount Value=" 4"/>459 <UsageCount Value="3"/> 416 460 </Unit47> 417 461 <Unit48> … … 420 464 <TopLine Value="330"/> 421 465 <CursorPos X="35" Y="338"/> 422 <UsageCount Value="1 3"/>466 <UsageCount Value="12"/> 423 467 </Unit48> 424 468 <Unit49> … … 428 472 <TopLine Value="58"/> 429 473 <CursorPos X="5" Y="75"/> 430 <UsageCount Value=" 5"/>474 <UsageCount Value="4"/> 431 475 </Unit49> 432 476 <Unit50> … … 435 479 <UnitName Value="URectangle"/> 436 480 <WindowIndex Value="0"/> 437 <TopLine Value=" 120"/>438 <CursorPos X=" 44" Y="150"/>439 <UsageCount Value=" 72"/>481 <TopLine Value="29"/> 482 <CursorPos X="3" Y="43"/> 483 <UsageCount Value="83"/> 440 484 </Unit50> 441 485 <Unit51> … … 444 488 <TopLine Value="147"/> 445 489 <CursorPos X="10" Y="84"/> 446 <UsageCount Value=" 8"/>490 <UsageCount Value="7"/> 447 491 </Unit51> 448 492 <Unit52> … … 452 496 <TopLine Value="520"/> 453 497 <CursorPos X="35" Y="531"/> 454 <UsageCount Value=" 7"/>498 <UsageCount Value="6"/> 455 499 </Unit52> 456 500 <Unit53> … … 461 505 <TopLine Value="69"/> 462 506 <CursorPos X="3" Y="90"/> 463 <UsageCount Value=" 65"/>507 <UsageCount Value="76"/> 464 508 </Unit53> 465 509 <Unit54> … … 470 514 <TopLine Value="29"/> 471 515 <CursorPos X="33" Y="47"/> 472 <UsageCount Value=" 65"/>516 <UsageCount Value="76"/> 473 517 </Unit54> 474 518 <Unit55> … … 476 520 <IsPartOfProject Value="True"/> 477 521 <UnitName Value="URegistry"/> 478 <UsageCount Value=" 64"/>522 <UsageCount Value="75"/> 479 523 </Unit55> 480 524 <Unit56> … … 483 527 <TopLine Value="71"/> 484 528 <CursorPos X="10" Y="84"/> 485 <UsageCount Value=" 6"/>529 <UsageCount Value="5"/> 486 530 </Unit56> 487 531 <Unit57> … … 490 534 <TopLine Value="167"/> 491 535 <CursorPos X="3" Y="169"/> 492 <UsageCount Value=" 6"/>536 <UsageCount Value="5"/> 493 537 </Unit57> 494 538 <Unit58> … … 497 541 <TopLine Value="466"/> 498 542 <CursorPos X="17" Y="470"/> 499 <UsageCount Value=" 6"/>543 <UsageCount Value="5"/> 500 544 </Unit58> 501 545 <Unit59> … … 504 548 <UnitName Value="UThreading"/> 505 549 <WindowIndex Value="0"/> 506 <TopLine Value=" 34"/>507 <CursorPos X=" 35" Y="51"/>508 <UsageCount Value=" 56"/>550 <TopLine Value="60"/> 551 <CursorPos X="16" Y="77"/> 552 <UsageCount Value="67"/> 509 553 </Unit59> 510 554 <Unit60> … … 514 558 <TopLine Value="55"/> 515 559 <CursorPos X="3" Y="72"/> 516 <UsageCount Value=" 20"/>560 <UsageCount Value="19"/> 517 561 </Unit60> 518 562 <Unit61> … … 522 566 <ResourceBaseClass Value="Form"/> 523 567 <UnitName Value="UNewGameForm"/> 524 <EditorIndex Value=" 4"/>568 <EditorIndex Value="11"/> 525 569 <WindowIndex Value="0"/> 526 570 <TopLine Value="44"/> 527 571 <CursorPos X="23" Y="65"/> 528 <UsageCount Value=" 56"/>572 <UsageCount Value="67"/> 529 573 <Loaded Value="True"/> 530 574 <LoadedDesigner Value="True"/> … … 537 581 <ResourceBaseClass Value="Form"/> 538 582 <UnitName Value="UMainForm"/> 539 <EditorIndex Value=" 3"/>540 <WindowIndex Value="0"/> 541 <TopLine Value=" 78"/>542 <CursorPos X=" 9" Y="93"/>543 <UsageCount Value=" 56"/>583 <EditorIndex Value="9"/> 584 <WindowIndex Value="0"/> 585 <TopLine Value="119"/> 586 <CursorPos X="1" Y="133"/> 587 <UsageCount Value="67"/> 544 588 <Loaded Value="True"/> 545 589 </Unit62> … … 554 598 <TopLine Value="14"/> 555 599 <CursorPos X="19" Y="32"/> 556 <UsageCount Value=" 56"/>600 <UsageCount Value="67"/> 557 601 </Unit63> 558 602 <Unit64> … … 562 606 <TopLine Value="3"/> 563 607 <CursorPos X="14" Y="20"/> 564 <UsageCount Value=" 20"/>608 <UsageCount Value="19"/> 565 609 </Unit64> 566 610 <Unit65> … … 570 614 <TopLine Value="31"/> 571 615 <CursorPos X="39" Y="33"/> 572 <UsageCount Value=" 20"/>616 <UsageCount Value="19"/> 573 617 </Unit65> 574 618 <Unit66> … … 578 622 <TopLine Value="1206"/> 579 623 <CursorPos X="3" Y="1223"/> 580 <UsageCount Value=" 7"/>624 <UsageCount Value="6"/> 581 625 </Unit66> 582 626 <Unit67> … … 585 629 <TopLine Value="1508"/> 586 630 <CursorPos X="17" Y="1512"/> 587 <UsageCount Value=" 10"/>631 <UsageCount Value="9"/> 588 632 </Unit67> 589 633 <Unit68> … … 592 636 <TopLine Value="1"/> 593 637 <CursorPos X="33" Y="15"/> 594 <UsageCount Value=" 10"/>638 <UsageCount Value="9"/> 595 639 </Unit68> 596 640 <Unit69> … … 599 643 <TopLine Value="50"/> 600 644 <CursorPos X="5" Y="67"/> 601 <UsageCount Value=" 10"/>645 <UsageCount Value="9"/> 602 646 </Unit69> 603 647 <Unit70> … … 606 650 <TopLine Value="164"/> 607 651 <CursorPos X="27" Y="167"/> 608 <UsageCount Value=" 10"/>652 <UsageCount Value="9"/> 609 653 </Unit70> 610 654 <Unit71> … … 612 656 <UnitName Value="Graphics"/> 613 657 <WindowIndex Value="0"/> 614 <TopLine Value=" 230"/>615 <CursorPos X="1 8" Y="244"/>616 <UsageCount Value="1 2"/>658 <TopLine Value="38"/> 659 <CursorPos X="17" Y="52"/> 660 <UsageCount Value="11"/> 617 661 </Unit71> 618 662 <Unit72> … … 622 666 <TopLine Value="25"/> 623 667 <CursorPos X="3" Y="39"/> 624 <UsageCount Value="1 2"/>668 <UsageCount Value="11"/> 625 669 </Unit72> 670 <Unit73> 671 <Filename Value="Forms/ugameresultsform.pas"/> 672 <ComponentName Value="GameResultsForm"/> 673 <ResourceBaseClass Value="Form"/> 674 <UnitName Value="UGameResultsForm"/> 675 <WindowIndex Value="0"/> 676 <TopLine Value="1"/> 677 <CursorPos X="19" Y="1"/> 678 <UsageCount Value="25"/> 679 </Unit73> 680 <Unit74> 681 <Filename Value="/usr/lib64/lazarus/components/codetools/codetoolsstrconsts.pas"/> 682 <UnitName Value="CodeToolsStrConsts"/> 683 <WindowIndex Value="0"/> 684 <TopLine Value="267"/> 685 <CursorPos X="64" Y="292"/> 686 <UsageCount Value="10"/> 687 </Unit74> 688 <Unit75> 689 <Filename Value="/usr/lib64/lazarus/lcl/include/customform.inc"/> 690 <EditorIndex Value="10"/> 691 <WindowIndex Value="0"/> 692 <TopLine Value="2095"/> 693 <CursorPos X="11" Y="2110"/> 694 <UsageCount Value="13"/> 695 <Loaded Value="True"/> 696 </Unit75> 697 <Unit76> 698 <Filename Value="/usr/share/fpcsrc/rtl/inc/systemh.inc"/> 699 <WindowIndex Value="0"/> 700 <TopLine Value="82"/> 701 <CursorPos X="18" Y="95"/> 702 <UsageCount Value="10"/> 703 </Unit76> 704 <Unit77> 705 <Filename Value="/usr/lib64/lazarus/lcl/interfaces/gtk2/gtk2devicecontext.inc"/> 706 <WindowIndex Value="0"/> 707 <TopLine Value="1195"/> 708 <CursorPos X="48" Y="1205"/> 709 <UsageCount Value="9"/> 710 </Unit77> 711 <Unit78> 712 <Filename Value="Forms/UDebugForm.pas"/> 713 <IsPartOfProject Value="True"/> 714 <ComponentName Value="DebugForm"/> 715 <ResourceBaseClass Value="Form"/> 716 <UnitName Value="UDebugForm"/> 717 <EditorIndex Value="7"/> 718 <WindowIndex Value="0"/> 719 <TopLine Value="4"/> 720 <CursorPos X="15" Y="18"/> 721 <UsageCount Value="27"/> 722 <Loaded Value="True"/> 723 <LoadedDesigner Value="True"/> 724 </Unit78> 725 <Unit79> 726 <Filename Value="Forms/UGameResultsForm.pas"/> 727 <IsPartOfProject Value="True"/> 728 <HasResources Value="True"/> 729 <UnitName Value="UGameResultsForm"/> 730 <UsageCount Value="27"/> 731 </Unit79> 732 <Unit80> 733 <Filename Value="/usr/share/fpcsrc/rtl/inc/objpash.inc"/> 734 <EditorIndex Value="5"/> 735 <WindowIndex Value="0"/> 736 <TopLine Value="171"/> 737 <CursorPos X="23" Y="185"/> 738 <UsageCount Value="13"/> 739 <Loaded Value="True"/> 740 </Unit80> 741 <Unit81> 742 <Filename Value="/usr/share/fpcsrc/rtl/inc/objpas.inc"/> 743 <EditorIndex Value="6"/> 744 <WindowIndex Value="0"/> 745 <TopLine Value="149"/> 746 <CursorPos X="9" Y="154"/> 747 <UsageCount Value="13"/> 748 <Loaded Value="True"/> 749 </Unit81> 750 <Unit82> 751 <Filename Value="/usr/lib64/lazarus/lcl/stringhashlist.pas"/> 752 <UnitName Value="StringHashList"/> 753 <EditorIndex Value="1"/> 754 <WindowIndex Value="0"/> 755 <TopLine Value="37"/> 756 <CursorPos X="14" Y="51"/> 757 <UsageCount Value="10"/> 758 <Loaded Value="True"/> 759 </Unit82> 626 760 </Units> 627 761 <JumpHistory Count="30" HistoryIndex="29"> 628 762 <Position1> 629 763 <Filename Value="UCore.pas"/> 630 <Caret Line=" 860" Column="1" TopLine="844"/>764 <Caret Line="1296" Column="1" TopLine="1280"/> 631 765 </Position1> 632 766 <Position2> 633 767 <Filename Value="UCore.pas"/> 634 <Caret Line=" 887" Column="1" TopLine="873"/>768 <Caret Line="1299" Column="1" TopLine="1280"/> 635 769 </Position2> 636 770 <Position3> 637 771 <Filename Value="UCore.pas"/> 638 <Caret Line=" 888" Column="1" TopLine="873"/>772 <Caret Line="1296" Column="32" TopLine="1280"/> 639 773 </Position3> 640 774 <Position4> 641 775 <Filename Value="UCore.pas"/> 642 <Caret Line=" 889" Column="1" TopLine="856"/>776 <Caret Line="1590" Column="31" TopLine="1579"/> 643 777 </Position4> 644 778 <Position5> 645 779 <Filename Value="UCore.pas"/> 646 <Caret Line=" 848" Column="1" TopLine="834"/>780 <Caret Line="927" Column="35" TopLine="914"/> 647 781 </Position5> 648 782 <Position6> 649 783 <Filename Value="UCore.pas"/> 650 <Caret Line=" 866" Column="1" TopLine="842"/>784 <Caret Line="948" Column="5" TopLine="925"/> 651 785 </Position6> 652 786 <Position7> 653 787 <Filename Value="UCore.pas"/> 654 <Caret Line=" 867" Column="1" TopLine="843"/>788 <Caret Line="933" Column="90" TopLine="925"/> 655 789 </Position7> 656 790 <Position8> 657 791 <Filename Value="UCore.pas"/> 658 <Caret Line=" 1033" Column="1" TopLine="1019"/>792 <Caret Line="926" Column="10" TopLine="911"/> 659 793 </Position8> 660 794 <Position9> 661 795 <Filename Value="UCore.pas"/> 662 <Caret Line=" 1034" Column="1" TopLine="1019"/>796 <Caret Line="924" Column="1" TopLine="911"/> 663 797 </Position9> 664 798 <Position10> 665 799 <Filename Value="UCore.pas"/> 666 <Caret Line="1 035" Column="1" TopLine="1019"/>800 <Caret Line="1307" Column="15" TopLine="1294"/> 667 801 </Position10> 668 802 <Position11> 669 803 <Filename Value="UCore.pas"/> 670 <Caret Line="1 036" Column="1" TopLine="1019"/>804 <Caret Line="1599" Column="7" TopLine="1583"/> 671 805 </Position11> 672 806 <Position12> 673 807 <Filename Value="UCore.pas"/> 674 <Caret Line="1 037" Column="1" TopLine="1019"/>808 <Caret Line="1481" Column="13" TopLine="1454"/> 675 809 </Position12> 676 810 <Position13> 677 811 <Filename Value="UCore.pas"/> 678 <Caret Line=" 1038" Column="1" TopLine="1019"/>812 <Caret Line="269" Column="13" TopLine="266"/> 679 813 </Position13> 680 814 <Position14> 681 815 <Filename Value="UCore.pas"/> 682 <Caret Line="1 039" Column="1" TopLine="1019"/>816 <Caret Line="1599" Column="5" TopLine="1583"/> 683 817 </Position14> 684 818 <Position15> 685 819 <Filename Value="UCore.pas"/> 686 <Caret Line="1 040" Column="1" TopLine="1019"/>820 <Caret Line="1593" Column="7" TopLine="1581"/> 687 821 </Position15> 688 822 <Position16> 689 823 <Filename Value="UCore.pas"/> 690 <Caret Line="1 033" Column="25" TopLine="1019"/>824 <Caret Line="1594" Column="32" TopLine="1581"/> 691 825 </Position16> 692 826 <Position17> 693 <Filename Value=" UCore.pas"/>694 <Caret Line=" 866" Column="1" TopLine="852"/>827 <Filename Value="Forms/UDebugForm.pas"/> 828 <Caret Line="7" Column="46" TopLine="1"/> 695 829 </Position17> 696 830 <Position18> 697 <Filename Value=" UCore.pas"/>698 <Caret Line=" 741" Column="35" TopLine="738"/>831 <Filename Value="Forms/UDebugForm.pas"/> 832 <Caret Line="43" Column="37" TopLine="19"/> 699 833 </Position18> 700 834 <Position19> 701 <Filename Value=" UCore.pas"/>702 <Caret Line=" 894" Column="15" TopLine="872"/>835 <Filename Value="Forms/UDebugForm.pas"/> 836 <Caret Line="39" Column="35" TopLine="22"/> 703 837 </Position19> 704 838 <Position20> 705 <Filename Value=" UCore.pas"/>706 <Caret Line=" 844" Column="54" TopLine="834"/>839 <Filename Value="Forms/UDebugForm.pas"/> 840 <Caret Line="40" Column="22" TopLine="27"/> 707 841 </Position20> 708 842 <Position21> 709 <Filename Value=" UCore.pas"/>710 <Caret Line=" 861" Column="46" TopLine="837"/>843 <Filename Value="Forms/UDebugForm.pas"/> 844 <Caret Line="49" Column="45" TopLine="28"/> 711 845 </Position21> 712 846 <Position22> 713 <Filename Value=" UCore.pas"/>714 <Caret Line=" 867" Column="20" TopLine="848"/>847 <Filename Value="Forms/UMainForm.pas"/> 848 <Caret Line="74" Column="38" TopLine="63"/> 715 849 </Position22> 716 850 <Position23> 717 <Filename Value=" UCore.pas"/>718 <Caret Line=" 873" Column="1" TopLine="855"/>851 <Filename Value="tunneler.lpr"/> 852 <Caret Line="12" Column="30" TopLine="7"/> 719 853 </Position23> 720 854 <Position24> 721 <Filename Value=" UCore.pas"/>722 <Caret Line=" 874" Column="1" TopLine="855"/>855 <Filename Value="tunneler.lpr"/> 856 <Caret Line="35" Column="43" TopLine="10"/> 723 857 </Position24> 724 858 <Position25> 725 <Filename Value=" UCore.pas"/>726 <Caret Line=" 735" Column="29" TopLine="718"/>859 <Filename Value="tunneler.lpr"/> 860 <Caret Line="11" Column="71" TopLine="11"/> 727 861 </Position25> 728 862 <Position26> 729 863 <Filename Value="UCore.pas"/> 730 <Caret Line="1 13" Column="17" TopLine="108"/>864 <Caret Line="1591" Column="7" TopLine="1582"/> 731 865 </Position26> 732 866 <Position27> 733 867 <Filename Value="UCore.pas"/> 734 <Caret Line=" 790" Column="56" TopLine="776"/>868 <Caret Line="1593" Column="9" TopLine="1582"/> 735 869 </Position27> 736 870 <Position28> 737 871 <Filename Value="UCore.pas"/> 738 <Caret Line=" 25" Column="7" TopLine="1"/>872 <Caret Line="1536" Column="26" TopLine="1533"/> 739 873 </Position28> 740 874 <Position29> 741 <Filename Value=" UCore.pas"/>742 <Caret Line=" 900" Column="5" TopLine="886"/>875 <Filename Value="../../PascalClassLibrary/Generics/TemplateGenerics/Generic/GenericMatrix.inc"/> 876 <Caret Line="150" Column="17" TopLine="137"/> 743 877 </Position29> 744 878 <Position30> 745 879 <Filename Value="UCore.pas"/> 746 <Caret Line=" 26" Column="15" TopLine="12"/>880 <Caret Line="1591" Column="9" TopLine="1582"/> 747 881 </Position30> 748 882 </JumpHistory> … … 758 892 <UnitOutputDirectory Value="lib/$(TargetCPU)-$(TargetOS)"/> 759 893 </SearchPaths> 894 <CodeGeneration> 895 <SmartLinkUnit Value="True"/> 896 <Checks> 897 <IOChecks Value="True"/> 898 <RangeChecks Value="True"/> 899 <OverflowChecks Value="True"/> 900 <StackChecks Value="True"/> 901 </Checks> 902 <VerifyObjMethodCallValidity Value="True"/> 903 </CodeGeneration> 760 904 <Linking> 905 <Debugging> 906 <UseHeaptrc Value="True"/> 907 </Debugging> 908 <LinkSmart Value="True"/> 761 909 <Options> 762 910 <Win32> … … 769 917 <UseMsgFile Value="True"/> 770 918 </CompilerMessages> 919 <CustomOptions Value="-dDEBUG"/> 771 920 <CompilerPath Value="$(CompPath)"/> 772 921 </Other> -
trunk/tunneler.lpr
r21 r28 9 9 {$ENDIF}{$ENDIF} 10 10 Interfaces, // this includes the LCL widgetset 11 Forms, UCore, TemplateGenerics, CoolTranslator, UPlatform, 11 Forms, UCore, TemplateGenerics, CoolTranslator, UPlatform, FileUtil, SysUtils, 12 12 UApplicationInfo, URectangle, UPersistentForm, URegistry, UThreading, 13 UNewGameForm, UMainForm, UMapForm 13 UNewGameForm, UMainForm, UMapForm, UDebugForm, UGameResultsForm 14 14 { you can add units after this }; 15 15 16 16 {$R *.res} 17 17 18 {$IFDEF DEBUG} 19 const 20 HeapTraceLog = 'heaptrclog.trc'; 21 {$ENDIF} 22 18 23 begin 24 {$IFDEF DEBUG} 25 // Heap trace 26 DeleteFile(ExtractFilePath(ParamStr(0)) + HeapTraceLog); 27 SetHeapTraceOutput(ExtractFilePath(ParamStr(0)) + HeapTraceLog); 28 {$ENDIF} 29 19 30 Application.Initialize; 20 31 Application.CreateForm(TMainForm, MainForm); 21 32 Application.CreateForm(TMapForm, MapForm); 22 33 Application.CreateForm(TNewGameForm, NewGameForm); 34 {$IFDEF DEBUG} 35 Application.CreateForm(TDebugForm, DebugForm); 36 {$ENDIF} 23 37 Application.Run; 24 38 end.
Note:
See TracChangeset
for help on using the changeset viewer.