X-Git-Url: https://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fgame%2Fg_playermodel.pas;h=b8d0ec6c7ef4b74d3f1c54c6a7297af846029d88;hb=31d174a428ef1235e1708b0738804b47e006cf5c;hp=72f5fb23e726f916f937f888e9991ebd7e69bbbf;hpb=6d6df4e3427cd01e03e172984c9d0d391ff38032;p=d2df-sdl.git diff --git a/src/game/g_playermodel.pas b/src/game/g_playermodel.pas index 72f5fb2..b8d0ec6 100644 --- a/src/game/g_playermodel.pas +++ b/src/game/g_playermodel.pas @@ -14,11 +14,13 @@ * along with this program. If not, see . *) {$INCLUDE ../shared/a_modes.inc} +{$M+} unit g_playermodel; interface uses + mempool, MAPDEF, g_textures, g_basic, g_weapons, e_graphics, wadreader; const @@ -80,7 +82,7 @@ type Array [A_STAND..A_LAST] of Array [D_LEFT..D_RIGHT] of Array of TDFPoint; - TPlayerModel = class (TObject) + TPlayerModel = class(TPoolObject) private FName: String; FDirection: TDirection; @@ -114,11 +116,14 @@ type procedure Update(); procedure Draw(X, Y: Integer; Alpha: Byte = 0); + published property Fire: Boolean read FFire; property Direction: TDirection read FDirection write FDirection; property Animation: Byte read FCurrentAnimation; property Weapon: Byte read FCurrentWeapon; property Name: String read FName; + + public property Color: TRGB read FColor write FColor; end;