Skip to content

Commit

Permalink
Fix issues with inherited method from templated base classes
Browse files Browse the repository at this point in the history
  • Loading branch information
Zegeri committed Sep 24, 2018
1 parent 913f619 commit d57d607
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/utils/xrQSlim/src/MxDynBlock.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ class MxDynBlock : public MxBlock<T>
{
private:
int fill;
using MxBlock<T>::resize;
using MxBlock<T>::begin;

public:
MxDynBlock(int n = 2) : MxBlock<T>(n) { fill = 0; }
Expand Down
8 changes: 8 additions & 0 deletions src/xrGame/ai/monsters/bloodsucker/bloodsucker_attack_state.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@ class CBloodsuckerStateAttack : public CStateMonsterAttack<_Object>
using inherited::current_substate;
using inherited::m_time_start_check_behinder;
using inherited::object;
using inherited::check_steal_state;
using inherited::select_state;
using inherited::check_camp_state;
using inherited::check_home_point;
using inherited::check_find_enemy_state;
using inherited::get_state_current;
using inherited::get_state;
using inherited::check_run_attack_state;

u32 m_time_stop_invis;
Fvector m_dir_point;
Expand Down
2 changes: 2 additions & 0 deletions src/xrGame/ai/monsters/bloodsucker/bloodsucker_predator.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ class CStateBloodsuckerPredator : public CState<_Object>
using inherited::prev_substate;
using inherited::time_state_started;
using inherited::current_substate;
using inherited::select_state;
using inherited::get_state_current;

u32 m_target_node;
u32 m_time_start_camp;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ class CStateCaptureJumpBloodsucker : public CState<_Object>
typedef CState<_Object>* state_ptr;
using inherited::prev_substate;
using inherited::current_substate;
using inherited::get_state_current;
using inherited::check_home_point;
using inherited::check_find_enemy;
using inherited::select_state;

public:
CStateCaptureJumpBloodsucker(_Object* obj);
Expand Down
3 changes: 3 additions & 0 deletions src/xrGame/ai/monsters/bloodsucker/bloodsucker_vampire.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ class CStateBloodsuckerVampire : public CState<_Object>
using inherited::object;
using inherited::current_substate;
using inherited::prev_substate;
using inherited::get_state;
using inherited::select_state;
using inherited::get_state_current;

const CEntityAlive* enemy;

Expand Down
3 changes: 3 additions & 0 deletions src/xrGame/ai/monsters/bloodsucker/bloodsucker_vampire_hide.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ class CStateBloodsuckerVampireHide : public CState<_Object>
using inherited::object;
using inherited::prev_substate;
using inherited::current_substate;
using inherited::select_state;
using inherited::get_state;
using inherited::get_state_current;

public:
CStateBloodsuckerVampireHide(_Object* obj);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ class CStateGroupAttackMoveToHomePoint : public CState<_Object>
using inherited::object;
using inherited::prev_substate;
using inherited::current_substate;
using inherited::select_state;
using inherited::get_state_current;

u32 m_target_node;
bool m_skip_camp;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ class CStatePsyDogPsyAttack : public CState<_Object>
protected:
typedef CState<_Object> inherited;
typedef CState<_Object>* state_ptr;
using inherited::select_state;

public:
CStatePsyDogPsyAttack(_Object* obj);
Expand Down
4 changes: 2 additions & 2 deletions src/xrServerEntities/PropertiesListTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,7 @@ class TokenValue : public CustomValue<T>, public TokenValueCustom
OnDrawText(this, draw_val);
else
for (int i = 0; this->token[i].name; i++)
if (this->token[i].id == (int)GetValue())
if (this->token[i].id == (int)this->GetValue())
return this->token[i].name;
return draw_val;
}
Expand Down Expand Up @@ -765,7 +765,7 @@ class RTokenValue : public CustomValue<T>, public RTokenValueCustom
OnDrawText(this, draw_val);
else
for (u32 k = 0; k < token_count; k++)
if ((T)token[k].id == GetValue())
if ((T)token[k].id == this->GetValue())
return *token[k].name;
return draw_val;
}
Expand Down

0 comments on commit d57d607

Please sign in to comment.