summaryrefslogtreecommitdiffstats
path: root/src/peds/Ped.h
diff options
context:
space:
mode:
authoreray orçunus <erayorcunus@gmail.com>2019-08-13 00:30:31 +0200
committereray orçunus <erayorcunus@gmail.com>2019-08-13 00:30:31 +0200
commite5d089db8826b2bfe163b714146fda1ff92a5896 (patch)
treeb0ce2c8b96829c1c5375ace7218e6aabd426097a /src/peds/Ped.h
parentMerge pull request #187 from erorcun/erorcun (diff)
downloadre3-e5d089db8826b2bfe163b714146fda1ff92a5896.tar
re3-e5d089db8826b2bfe163b714146fda1ff92a5896.tar.gz
re3-e5d089db8826b2bfe163b714146fda1ff92a5896.tar.bz2
re3-e5d089db8826b2bfe163b714146fda1ff92a5896.tar.lz
re3-e5d089db8826b2bfe163b714146fda1ff92a5896.tar.xz
re3-e5d089db8826b2bfe163b714146fda1ff92a5896.tar.zst
re3-e5d089db8826b2bfe163b714146fda1ff92a5896.zip
Diffstat (limited to 'src/peds/Ped.h')
-rw-r--r--src/peds/Ped.h30
1 files changed, 23 insertions, 7 deletions
diff --git a/src/peds/Ped.h b/src/peds/Ped.h
index d2c20294..264a67a8 100644
--- a/src/peds/Ped.h
+++ b/src/peds/Ped.h
@@ -29,6 +29,13 @@ enum
ENDFIGHT_FAST
};
+enum PedRouteType
+{
+ PEDROUTE_STOP_WHEN_DONE = 1,
+ PEDROUTE_GO_BACKWARD_WHEN_DONE,
+ PEDROUTE_GO_TO_START_WHEN_DONE
+};
+
struct FightMove
{
AnimationId animId;
@@ -335,9 +342,7 @@ public:
eObjective m_prevObjective;
CPed *m_pedInObjective;
CVehicle *m_carInObjective;
- uint32 field_174;
- uint32 field_178;
- uint32 field_17C;
+ CVector m_nextRoutePointPos;
CPed *m_leader;
uint32 m_pedFormation;
uint32 m_fearFlags;
@@ -375,10 +380,10 @@ public:
float m_fHealth;
float m_fArmour;
int16 m_routeLastPoint;
- uint16 m_routePoints;
- int16 m_routePos;
+ uint16 m_routeStartPoint;
+ int16 m_routePointsPassed;
int16 m_routeType;
- int16 m_routeCurDir;
+ int16 m_routePointsBeingPassed;
uint16 field_2D2;
CVector2D m_moved;
float m_fRotationCur;
@@ -567,7 +572,6 @@ public:
void SetEvasiveDive(CPhysical*, uint8);
void SetAttack(CEntity*);
void StartFightAttack(uint8);
- void LoadFightData(void);
void SetWaitState(eWaitState, void*);
bool FightStrike(CVector&);
int GetLocalDirection(CVector2D&);
@@ -605,11 +609,23 @@ public:
void FollowPath(void);
CVector GetFormationPosition(void);
void GetNearestDoor(CVehicle*, CVector&);
+ bool GetNearestPassengerDoor(CVehicle*, CVector&);
+ int GetNextPointOnRoute(void);
+ uint8 GetPedRadioCategory(uint32);
+ int GetWeaponSlot(eWeaponType);
+ void GoToNearestDoor(CVehicle*);
+ bool HaveReachedNextPointOnRoute(float a2);
+ void Idle(void);
+ void InTheAir(void);
+ void SetLanding(void);
// Static methods
static CVector GetLocalPositionToOpenCarDoor(CVehicle *veh, uint32 component, float offset);
static CVector GetPositionToOpenCarDoor(CVehicle *veh, uint32 component, float seatPosMult);
static CVector GetPositionToOpenCarDoor(CVehicle* veh, uint32 component);
+ static void Initialise(void);
+ static void SetAnimOffsetForEnterOrExitVehicle(void);
+ static void LoadFightData(void);
// Callbacks
static RwObject *SetPedAtomicVisibilityCB(RwObject *object, void *data);