Registriert seit: 22. Mär 2005
Ort: Dingolfing
4.129 Beiträge
Turbo Delphi für Win32
|
Re: OOP und RPG
3. Nov 2005, 20:08
Delphi-Quellcode:
type
TCharacter=class;
public
Health, Mana, Strength, Skill, Defense, Intelligence, Fame: Byte;
IsEnemy, Alive, Visible, Vulnerable: Boolean;
X, Y, MapID, Angle: Word;
TileSetID: Word;
constructor Create;
procedure Hurt(Value: Byte);
procedure Kill;
procedure Revive;
end;
Das wäre ein guter Anfang.
Manuel Eberl „The trouble with having an open mind, of course, is that people will insist on coming along and trying to put things in it.“
- Terry Pratchett
|
|
Zitat
|