Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable ILocomotion interface #58

Merged
merged 5 commits into from
Oct 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions extension/sourcesdk/NextBot/NextBotInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ INextBot::~INextBot()
if (m_IntentionInterface)
delete m_IntentionInterface;

/*if (m_LocoInterface)
delete m_LocoInterface;*/
if (m_LocoInterface)
delete m_LocoInterface;

if (m_BodyInterface)
delete m_BodyInterface;
Expand Down
7 changes: 4 additions & 3 deletions extension/sourcesdk/NextBot/NextBotInterface.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include "NextBotDebug.h"
#include "NextBotBodyInterface.h"
#include "NextBotIntentionInterface.h"
#include "NextBotLocomotionInterface.h"
#include "sourcesdk/tracefilter_simple.h"
#include "sourcesdk/basecombatcharacter.h"
#include <enginecallback.h>
Expand Down Expand Up @@ -51,7 +52,7 @@ class INextBot : public INextBotEventResponder
virtual CBaseCombatCharacter* GetEntity() const = 0;
virtual NextBotCombatCharacter *GetNextBotCombatCharacter() const { return nullptr; };

virtual ILocomotion *GetLocomotionInterface() const = 0;
virtual ILocomotion *GetLocomotionInterface() const;
virtual IBody *GetBodyInterface() const;
virtual IIntention *GetIntentionInterface() const;
virtual IVision *GetVisionInterface() const = 0;
Expand Down Expand Up @@ -189,15 +190,15 @@ inline void INextBot::NotifyPathDestruction( const PathFollower *path )
m_CurrentPath = nullptr;
}

/*inline ILocomotion *INextBot::GetLocomotionInterface( void ) const
inline ILocomotion *INextBot::GetLocomotionInterface( void ) const
{
if ( m_LocoInterface == nullptr )
{
m_LocoInterface = new ILocomotion( const_cast< INextBot * >( this ) );
}

return m_LocoInterface;
}*/
}

inline IBody *INextBot::GetBodyInterface( void ) const
{
Expand Down
Loading
Loading