Changeset 544 for trunk/Brain.pas


Ignore:
Timestamp:
Apr 16, 2024, 9:47:10 PM (7 months ago)
Author:
chronos
Message:
  • Fixed: Correct translation of offered players AIs.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Brain.pas

    r468 r544  
    2121
    2222  TBrain = class
     23  private
     24    FName: string;
     25    function GetName: string;
     26    procedure SetName(AValue: string);
     27  public
    2328    FileName: string;
    2429    DLLName: string;
    25     Name: string;
     30    LookupName: string;
    2631    Credits: string; { filename and full name }
    2732    hm: TLibHandle; { module handle }
     
    3944    constructor Create;
    4045    destructor Destroy; override;
     46    property Name: string read GetName write SetName;
    4147  end;
    4248
     
    5864
    5965{ TBrain }
     66
     67function TBrain.GetName: string;
     68begin
     69  if FName <> '' then Result := FName
     70    else Result := Phrases.Lookup(LookupName);
     71end;
     72
     73procedure TBrain.SetName(AValue: string);
     74begin
     75  FName := AValue;
     76end;
    6077
    6178procedure TBrain.LoadPicture;
Note: See TracChangeset for help on using the changeset viewer.