2019-06-25 00:42:23 +02:00
|
|
|
#pragma once
|
|
|
|
|
2019-07-10 08:06:43 +02:00
|
|
|
#include "Physical.h"
|
2019-06-25 00:42:23 +02:00
|
|
|
#include "AnimBlendAssociation.h"
|
|
|
|
|
2019-07-10 08:06:43 +02:00
|
|
|
struct CPhone
|
|
|
|
{
|
|
|
|
CVector m_vecPos;
|
|
|
|
uint16 *m_apMessages[6];
|
|
|
|
int32 field_24;
|
|
|
|
CEntity *m_pEntity;
|
|
|
|
int32 m_nState;
|
|
|
|
uint8 field_30;
|
|
|
|
};
|
|
|
|
|
|
|
|
static_assert(sizeof(CPhone) == 0x34, "CPhone: error");
|
|
|
|
|
|
|
|
class CPhoneInfo {
|
|
|
|
public:
|
|
|
|
int32 m_nMax;
|
|
|
|
int32 m_nNum;
|
|
|
|
CPhone m_aPhones[50];
|
|
|
|
|
|
|
|
CPhoneInfo() { }
|
|
|
|
~CPhoneInfo() { }
|
|
|
|
|
|
|
|
int FindNearestFreePhone(CVector*);
|
|
|
|
bool PhoneAtThisPosition(CVector);
|
|
|
|
};
|
|
|
|
|
|
|
|
extern CPhoneInfo &gPhoneInfo;
|
|
|
|
|
2019-06-25 00:42:23 +02:00
|
|
|
void PhonePutDownCB(CAnimBlendAssociation *assoc, void *arg);
|
|
|
|
void PhonePickUpCB(CAnimBlendAssociation *assoc, void *arg);
|