Autor Beitrag
Leuchtturm
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1087

Win Vista, Knoppix, Ubuntu
Delphi 7 Pe, Turbo Delphi, C#(VS 2005 Express), (X)HTML + CSS, bald Assembler
BeitragVerfasst: Sa 07.10.06 13:43 
Hi,
ich habe mir mal die PongKI angekuckt.
Das Programm wird anstandslos compilierd aber es funktioniert nicht :?
Ich habe das Programm mal im Anhang, dieses ist aber noch ohne Wandkolission meinerseits :wink:

Zum Problem:
Ich glaube das es so auch nicht funktionieren kann weil ich den Ball als TSimpleObject erstelle und dann als Record bewegen will.
Was müsste ich da ändern :?:
Ich kapiers nähmlich nicht ganz wie das funktioniert :lol:
Danke im Vorraus
Leuchtturm
:wave:
Einloggen, um Attachments anzusehen!
_________________
Ich bin dafür verantwortlich was ich sage - nicht dafür was du verstehst.
F34r0fTh3D4rk
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 5284
Erhaltene Danke: 27

Win Vista (32), Win 7 (64)
Eclipse, SciTE, Lazarus
BeitragVerfasst: Sa 07.10.06 14:16 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
type
  TBall = class(TSimpleObject)
    constructor Create;
    destructor Destroy;
    procedure Free;
  private
    Fradius: integer;
    procedure SetRadius(Value: integer);
  public  
    velocity: TVector2D;
    property radius: integer read Fradius write SetRadius;  
  end;


dan schreibst du in SetRadius die änderungen für width und height rein und fertig ist das ganze.


mfg
Leuchtturm Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1087

Win Vista, Knoppix, Ubuntu
Delphi 7 Pe, Turbo Delphi, C#(VS 2005 Express), (X)HTML + CSS, bald Assembler
BeitragVerfasst: Sa 07.10.06 14:28 
Warum sind im folgenden Code(gehighlightet):
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
    
     constructor Create; 
     destructor Destroy; 
     procedure Free; 
  private
    Fradius: integer;
     procedure SetRadius(Value: integer); 

folgende Fehler
Fehler hat folgendes geschrieben:
Ungenügende Forward- oder External-Deklarationen:'TBall1.Create'
Ungenügende Forward- oder External-Deklarationen:'TBall1.Destroy'
Ungenügende Forward- oder External-Deklarationen:'TBall1.Free'
Ungenügende Forward- oder External-Deklarationen:'TBall1.SetRadius'
??

_________________
Ich bin dafür verantwortlich was ich sage - nicht dafür was du verstehst.
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: Sa 07.10.06 14:35 
Weil du diese Methoden nicht definiert hast, sprich du musst sie mit Inhalt füllen:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
constructor TBall.Create;
begin
//blubb
end;
usw.

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
F34r0fTh3D4rk
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 5284
Erhaltene Danke: 27

Win Vista (32), Win 7 (64)
Eclipse, SciTE, Lazarus
BeitragVerfasst: Sa 07.10.06 14:35 
Leuchtturm Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1087

Win Vista, Knoppix, Ubuntu
Delphi 7 Pe, Turbo Delphi, C#(VS 2005 Express), (X)HTML + CSS, bald Assembler
BeitragVerfasst: Sa 07.10.06 14:50 
Danke:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
constructor TBall1.Create;
begin
inherited Create();
end;

FEHLER hat folgendes geschrieben:
nicht genügend wirkliche Parameter
:gruebel:
Ich weiß nicht was da hinsoll.

Ich habe auch in der Deklaration keine weiteren Parameter angegeben

_________________
Ich bin dafür verantwortlich was ich sage - nicht dafür was du verstehst.
F34r0fTh3D4rk
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 5284
Erhaltene Danke: 27

Win Vista (32), Win 7 (64)
Eclipse, SciTE, Lazarus
BeitragVerfasst: Sa 07.10.06 15:16 
user profile iconLeuchtturm hat folgendes geschrieben:
Danke:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
constructor TBall1.Create;
begin
inherited Create();
end;

FEHLER hat folgendes geschrieben:
nicht genügend wirkliche Parameter
:gruebel:
Ich weiß nicht was da hinsoll.

Ich habe auch in der Deklaration keine weiteren Parameter angegeben


user profile iconF34r0fTh3D4rk hat folgendes geschrieben:
www.christian-stelzm...rtikel/crashkurs.htm