Skip to content

Commit

Permalink
* EDIT: Remove GOAP from CMapActionPlanner
Browse files Browse the repository at this point in the history
  • Loading branch information
BearIvan committed Sep 23, 2024
1 parent cb3c689 commit 67ad52b
Show file tree
Hide file tree
Showing 4 changed files with 120 additions and 298 deletions.
9 changes: 3 additions & 6 deletions src/xrGame/ui/UIMapWnd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,7 @@ void CUIMapWnd::Init(LPCSTR xml_name, LPCSTR start_from)
#endif

Register (m_GlobalMap);
m_ActionPlanner = new CMapActionPlanner();
m_ActionPlanner->setup (this);
m_ActionPlanner = new FRbmkMapActionPlanner(this);
m_view_actor = true;

m_UIPropertiesBox = new CUIPropertiesBox();
Expand Down Expand Up @@ -623,7 +622,7 @@ void CUIMapWnd::Update()
if(m_GlobalMap)
m_GlobalMap->WorkingArea().set(ActiveMapRect());
inherited::Update ();
m_ActionPlanner->update ();
m_ActionPlanner->Update ();
UpdateNav ();
}

Expand All @@ -641,9 +640,7 @@ void CUIMapWnd::ViewGlobalMap()

void CUIMapWnd::ResetActionPlanner()
{
m_ActionPlanner->m_storage.set_property(1,false);
m_ActionPlanner->m_storage.set_property(2,false);
m_ActionPlanner->m_storage.set_property(3,false);
m_ActionPlanner->Reset();
}

void CUIMapWnd::ViewZoomIn()
Expand Down
4 changes: 2 additions & 2 deletions src/xrGame/ui/UIMapWnd.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class CUIGlobalMap;
class CUIFrameWindow;
class CUIFixedScrollBar;
class CUIFrameLineWnd;
class CMapActionPlanner;
class FRbmkMapActionPlanner;
class CUITabControl;
class CUIStatic;
class CUI3tButton;
Expand Down Expand Up @@ -45,7 +45,7 @@ class CUIMapWnd: public CUIWindow, public CUIWndCallback
CUIFixedScrollBar* m_UIMainScrollV;
CUIFixedScrollBar* m_UIMainScrollH;
CUIWindow* m_UILevelFrame;
CMapActionPlanner* m_ActionPlanner;
FRbmkMapActionPlanner* m_ActionPlanner;

CUIMapLocationHint* m_map_location_hint;
CUIPdaSpot* m_UserSpotWnd;
Expand Down
Loading

0 comments on commit 67ad52b

Please sign in to comment.