Ejemplo n.º 1
0
void KMovableObject::UnInit()
{
    ClearPath();
    ClearFollower();
    RemoveGuide();
    KSceneObject::UnInit();
}
void
VisitPointTool::FinalActorSetup()
{
    RemoveGuide();

    // End bounding box mode.
    if(addedBbox)
    {
        proxy.EndBoundingBox();
    }
    addedBbox = false;
}
Ejemplo n.º 3
0
void KMovableObject::TurnToMoveType(KMoveType eMoveType)
{
    KMoveType eOldType = m_eMoveType;
    m_eMoveType = eMoveType;

    if (eOldType == mosAttached || eOldType == mosStandOn || eOldType == mosToken)
    {
        RemoveGuide();
    }
    else if(eOldType == mosTrackMove)
    {
        KTrackMoveState eState = m_eTrackMoveState;

        m_eTrackMoveState = tmsNone;
        ClearPath();
        m_bAttackState = false;

        if (eState == tmsMoving)
        {
            OnTrackMoveInterrupted();
        }
        else if(eState == tmsFinished)
        {
            OnTrackMoveFinished();
        }
        else
        {
            assert(false);
        }
    }

    if (m_eMoveType == mosIdle)
    {
        m_bAttackState = false;
    }
}
Ejemplo n.º 4
0
void KMovableObject::OnDeleteFlagSetted()
{
    ClearFollower();
    RemoveGuide();
}