4 ref BotTestItemMoveBackAndForth_MoveFromSlotToSlot m_Move;
6 void BotTestItemMoveBackAndForth (
Bot bot = NULL,
BotStateBase parent = NULL)
11 m_Move =
new BotTestItemMoveBackAndForth_MoveFromSlotToSlot(m_Bot,
this);
17 m_FSM.AddTransition(
new BotTransition( m_Move, __EntAtt__, m_Move));
19 m_FSM.SetInitialState(m_Move);
36 if (
m_Entity.GetInventory().GetCurrentInventoryLocation(loc))
38 m_Move.m_WaitingForSlot = loc.GetSlot();
60 class BotTestItemMoveBackAndForth_MoveFromSlotToSlot
extends BotStateBase
79 int GetNextSlot (
int curr)
83 if (curr == m_mskSlot)
96 if (
m_Entity.GetInventory().GetCurrentInventoryLocation(loc))
100 if (loc.GetSlot() == m_WaitingForSlot)
102 int nextSlot = GetNextSlot(m_WaitingForSlot);
105 m_WaitingForSlot = nextSlot;