Ejemplo n.º 1
0
 public CharacterStateManager(Character character)
 {
     this.character   = character;
     movementState    = new StandingState(this);
     leaningState     = new NoLeaningState(this);
     interactionState = new InteractionState(this);
 }
Ejemplo n.º 2
0
 public void _PhysicsProcess(float dt)
 {
     movementState    = (AbstractMovementState)movementState.PhysicsProcess(dt);
     leaningState     = (AbstractLeaningState)leaningState.PhysicsProcess(dt);
     interactionState = (AbstractInteractionState)interactionState.PhysicsProcess(dt);
 }
Ejemplo n.º 3
0
 public void _Input(InputEvent ev)
 {
     movementState    = (AbstractMovementState)movementState.HandleEvent(ev);
     leaningState     = (AbstractLeaningState)leaningState.HandleEvent(ev);
     interactionState = (AbstractInteractionState)interactionState.HandleEvent(ev);
 }