⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 adkobjects.pas

📁 N年前有个法国小组用Delphi写了一个2D网游(AD&D类型)
💻 PAS
字号:
unit ADKObjects;

interface

type
 TADKObject=class
 protected
  fSort:boolean;
 public
  constructor Create;
  destructor Destroy; override;
  function BaseLine:integer; virtual; abstract;
  procedure Update(ms:cardinal); virtual; abstract;
  procedure Draw; virtual; abstract;
  function Light(lx,ly:single):integer; virtual;
 end;

implementation

uses
 ADKData;

constructor TADKObject.Create;
begin
 inherited;
 ObjectList.Add(Self);
end;

destructor TADKObject.Destroy;
begin
 ObjectList.Remove(Self);
 inherited;
end;

function TADKObject.Light(lx,ly:single):integer;
begin
 result:=0;
end;

end.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -