Skip to content

Commit

Permalink
xrGame: minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Xottab-DUTY committed Apr 2, 2023
1 parent 84fb6c0 commit dd7da62
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/xrGame/AmebaZone.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ class CAmebaZone :
bool BlowoutState() override;
void SwitchZoneState(EZoneState new_state) override;
void Load(LPCSTR section) override;
virtual float distance_to_center(CGameObject* O);
float distance_to_center(CGameObject* O);
};
8 changes: 6 additions & 2 deletions src/xrGame/CustomZone.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ class CCustomZone : public CSpaceRestrictor, public Feel::Touch

virtual CCustomZone* cast_custom_zone() { return this; }
//различные состояния в которых может находиться зона
typedef enum {
typedef enum
{
eZoneStateIdle = 0, //состояние зоны, когда внутри нее нет активных объектов
eZoneStateAwaking, //пробуждение зоны (объект попал в зону)
eZoneStateBlowout, //выброс
Expand Down Expand Up @@ -128,6 +129,7 @@ class CCustomZone : public CSpaceRestrictor, public Feel::Touch

//тип наносимого хита
ALife::EHitType m_eHitTypeBlowout;

EZoneState m_eZoneState;

//текущее время пребывания зоны в определенном состоянии
Expand Down Expand Up @@ -167,6 +169,7 @@ class CCustomZone : public CSpaceRestrictor, public Feel::Touch
void ZoneEnable();
void ZoneDisable();
EZoneState ZoneState() { return m_eZoneState; }

protected:
//воздействие зоной на объект
virtual void Affect(SZoneObjectInfo* O) {}
Expand Down Expand Up @@ -285,6 +288,7 @@ class CCustomZone : public CSpaceRestrictor, public Feel::Touch
void StopObjectIdleParticles(CGameObject* pObject);

virtual bool IsVisibleForZones() { return false; }

//обновление, если зона передвигается
virtual void OnMove();
Fvector m_vPrevPos;
Expand All @@ -308,7 +312,7 @@ class CCustomZone : public CSpaceRestrictor, public Feel::Touch
void o_switch_2_fast();
void o_switch_2_slow();

// Lain: adde
// Lain: added
private:
virtual bool light_in_slow_mode() { return true; }
};
1 change: 0 additions & 1 deletion src/xrGame/zone_effector.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ class CZoneEffector
{
float r_min_perc;
float r_max_perc;
float m_radius;
float m_factor;
CPostprocessAnimatorLerp* m_pp_effector;
shared_str m_pp_fname;
Expand Down

0 comments on commit dd7da62

Please sign in to comment.