2009-08-28 18:19:25 -04:00
|
|
|
unit Client;
|
|
|
|
|
|
|
|
{$mode objfpc}{$H+}
|
|
|
|
|
|
|
|
interface
|
|
|
|
|
|
|
|
uses
|
2009-09-04 01:57:40 -04:00
|
|
|
Classes, SysUtils, MufasaTypes, Window, Input, Files;
|
2009-08-28 18:19:25 -04:00
|
|
|
|
|
|
|
type
|
|
|
|
TClient = class(TObject)
|
|
|
|
constructor Create;
|
|
|
|
destructor Destroy; override;
|
|
|
|
|
|
|
|
public
|
|
|
|
MWindow: TMWindow;
|
|
|
|
MInput: TMInput;
|
2009-09-04 01:57:40 -04:00
|
|
|
MFiles: TMFiles;
|
2009-08-28 18:19:25 -04:00
|
|
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
implementation
|
|
|
|
|
|
|
|
// Possibly pass arguments to a default window.
|
|
|
|
constructor TClient.Create;
|
|
|
|
begin
|
|
|
|
inherited Create;
|
|
|
|
|
2009-09-04 03:04:32 -04:00
|
|
|
MWindow := TMWindow.Create();
|
2009-08-28 18:19:25 -04:00
|
|
|
MInput := TMInput.Create(Self);
|
2009-09-04 01:57:40 -04:00
|
|
|
MFiles := TMFiles.Create;
|
2009-08-28 18:19:25 -04:00
|
|
|
end;
|
|
|
|
|
|
|
|
destructor TClient.Destroy;
|
|
|
|
begin
|
2009-09-04 01:57:40 -04:00
|
|
|
MFiles.Destroy;
|
2009-08-28 18:19:25 -04:00
|
|
|
MInput.Destroy;
|
2009-09-04 01:57:40 -04:00
|
|
|
MWindow.Destroy;
|
|
|
|
|
2009-08-28 18:19:25 -04:00
|
|
|
|
|
|
|
inherited;
|
|
|
|
end;
|
|
|
|
|
|
|
|
end.
|
|
|
|
|