Autor Beitrag
adler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 511

Windows XP
Delphi 05 Pers
BeitragVerfasst: So 07.11.04 10:02 
Sers!

Ich habe ein Prob.
Und zwar weiß ich nicht wie ich aus meiner einen Klasse an die Daten der anderen gelangen soll.
Hier mal die Deklerationen, ich dachte mir ich deklarier mal aSender, aber er sagt mit in selbiger procedure das er aSender nicht kennt, obwohl er oben drüber in den parametern steht.
also
procedure create(aSender:Tobject);
begin
aSender. // nun gibts das net.
...
Hier mal die Dekleration:
ausblenden volle Höhe Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
  TLighting = class(TObject)
    constructor create();
    procedure AddLight(LightName: cardinal);
    procedure paintBevor();
    procedure paintAfter();
  private
    LightList : array of TLight;
    Lightcount : integer;
  public
    {}
  end;

  TMapObject = class(TObject)
  private
    constructor create(aSender: TObject);
    procedure paint(); virtual;
  public
    Position : TPointXZ;
  end;

  TmkFire = class(TMapObject)
    constructor create(aSender: TObject);
    procedure paint(); override;
  private
    {}
  public
    {}
  end;

  TMapKlasse = class(TObject)
  private
    loadin: TStringlist;
    textur: cardinal;
  public
      vMap: array of array of TFeld;
      vMapObjs: array of TMapObject;
      felderzahl: integer;
      Lighting : TLighting;
    constructor create(aFilename: string; Texturfolder: String);
    procedure render;
  end;

_________________
Wo's nix zu gucken gibt, gibts vielleicht was zu hören.
Keldorn
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 2266
Erhaltene Danke: 4

Vista
D6 Prof, D 2005 Pro, D2007 Pro, DelphiXE2 Pro
BeitragVerfasst: So 07.11.04 10:14 
Hallo,

sollte as nicht eher
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
  TmkFire = class(TMapObject)  
  private  
    {}  
  public  
    constructor create(aSender: TObject);  
    procedure paint(); override;  
  end;

heißen?

ansonsten versteh ich dein Problem nicht, was genau willst du erreichen?

Mfg frank

_________________
Lükes Grundlage der Programmierung: Es wird nicht funktionieren.
(Murphy)