raze/source/core/coreplayer.h

19 lines
321 B
C
Raw Normal View History

#pragma once
#include "d_net.h"
#include "packet.h"
#include "gameinput.h"
struct CorePlayer
{
ticcmd_t lastcmd, cmd;
PlayerAngles Angles;
DCoreActor* actor;
uint8_t pnum;
virtual ~CorePlayer() { if (actor) actor->Destroy(); };
virtual DCoreActor* GetActor() = 0;
};
extern CorePlayer* PlayerArray[MAXPLAYERS];