close Warning: Can't synchronize with repository "(default)" (No changeset 184 in the repository). Look in the Trac log for more information.

source: trunk/UServerList.pas

Last change on this file was 180, checked in by chronos, 6 years ago
  • Modified: Client related interface moved from FormMain to FormClient. This code change will later allow to implement network client-server gameplay.
  • Added: Allow to open other spectator client windows.
File size: 759 bytes
Line 
1unit UServerList;
2
3{$mode delphi}
4
5interface
6
7uses
8 Classes, SysUtils, contnrs;
9
10type
11 TServerInfo = class
12 Name: string;
13 Address: string;
14 Port: Word;
15 PlayersCountCurrent: Integer;
16 PlayersCountMax: Integer;
17 Password: string;
18 MapName: string;
19 Latency: TTime;
20 end;
21
22 TServerInfos = class(TObjectList)
23 end;
24
25 { TServerList }
26
27 TServerList = class
28 Name: string;
29 Address: string;
30 Items: TServerInfos;
31 constructor Create;
32 destructor Destroy; override;
33 end;
34
35implementation
36
37{ TServerList }
38
39constructor TServerList.Create;
40begin
41 Items := TServerInfos.Create;
42end;
43
44destructor TServerList.Destroy;
45begin
46 Items.Free;
47 inherited Destroy;
48end;
49
50end.
51
Note: See TracBrowser for help on using the repository browser.