Пример #1
0
 protected internal virtual void Choose(VertexNodeStateContext context, NodeGender gender)
 {
     if (gender == NodeGender.Male)
     {
         context.ChangeState(MaleChosenVertexNodeState.Instance);
     }
     if (gender == NodeGender.Female)
     {
         context.ChangeState(FemaleChosenVertexNodeState.Instance);
     }
     // Should this method be empty?
 }
Пример #2
0
 protected internal virtual void ChooseAsOrigin(VertexNodeStateContext context)
 {
     context.ChangeState(OriginChosenVertexNodeState.Instance);
 }
Пример #3
0
 protected internal virtual void Reset(VertexNodeStateContext context)
 {
     context.ChangeState(UnchosenVertexNodeState.Instance);
 }