Пример #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);
 }
 protected internal override void ChooseAsOrigin(VertexNodeStateContext context)
 {
     base.ChooseAsOrigin(context);
 }
Пример #4
0
 protected internal virtual void Reset(VertexNodeStateContext context)
 {
     context.ChangeState(UnchosenVertexNodeState.Instance);
 }
 protected internal override void Choose(VertexNodeStateContext context, NodeGender gender)
 {
     base.Choose(context, gender);
 }