2023-10-02 00:28:09 +00:00
|
|
|
#pragma once
|
|
|
|
|
2023-10-02 04:26:45 +00:00
|
|
|
#include "d_net.h"
|
2023-10-02 00:28:09 +00:00
|
|
|
#include "packet.h"
|
|
|
|
#include "gameinput.h"
|
|
|
|
|
|
|
|
struct CorePlayer
|
|
|
|
{
|
2023-10-02 05:05:16 +00:00
|
|
|
ticcmd_t lastcmd, cmd;
|
2023-10-02 00:28:09 +00:00
|
|
|
PlayerAngles Angles;
|
2023-10-02 02:27:16 +00:00
|
|
|
DCoreActor* actor;
|
2023-10-02 07:44:04 +00:00
|
|
|
uint8_t pnum;
|
2023-10-02 02:27:16 +00:00
|
|
|
|
2023-10-02 06:00:50 +00:00
|
|
|
virtual ~CorePlayer() { if (actor) actor->Destroy(); };
|
2023-10-02 02:27:16 +00:00
|
|
|
virtual DCoreActor* GetActor() = 0;
|
2023-10-02 00:28:09 +00:00
|
|
|
};
|
2023-10-02 04:26:45 +00:00
|
|
|
|
|
|
|
extern CorePlayer* PlayerArray[MAXPLAYERS];
|