示例#1
0
        public static Verb GetVerb(Agent agent, VerbTypes type, ModifierTypes modifier = ModifierTypes.None)
        {
            switch (type)
            {
            case VerbTypes.Walk:
                return(new Walk(modifier, agent));

            case VerbTypes.Jump:
                return(new Jump(modifier, agent));

            case VerbTypes.Roll:
                return(new Roll(modifier, agent));

            case VerbTypes.Teleport:
                return(new Teleport(modifier, agent));

            case VerbTypes.Strike:
                return(new Strike(modifier, agent));

            case VerbTypes.Shoot:
                return(new Shoot(modifier, agent));

            case VerbTypes.Protect:
                return(new Protect(modifier, agent));

            case VerbTypes.Throw:
                return(new Throw(modifier, agent));

            case VerbTypes.Invert:
                return(new Invert(modifier, agent));
            }
            return(null);
        }
示例#2
0
        private GameObject SpawnVerbItem(VerbTypes verb)
        {
            GameObject verbObject = Instantiate(verbItemPrefab);
            VerbItem   verbItem   = verbObject.GetComponent <VerbItem>();

            verbItem.SetVerb(verb);
            return(verbObject);
        }
示例#3
0
        /// <summary>
        /// Returns a value that indicates whether the current instance and a specified <see cref="CommandLine.Parsed{T}"/> have the same value.
        /// </summary>
        /// <param name="other">The <see cref="CommandLine.Parsed{T}"/> instance to compare.</param>
        /// <returns><value>true</value> if this instance of <see cref="CommandLine.Parsed{T}"/> and <paramref name="other"/> have the same value; otherwise, <value>false</value>.</returns>
        public bool Equals(Parsed <T> other)
        {
            if (other == null)
            {
                return(false);
            }

            return(this.Tag.Equals(other.Tag) &&
                   Value.Equals(other.Value) &&
                   VerbTypes.SequenceEqual(other.VerbTypes));
        }
示例#4
0
        public static Sentence Create(NounTypes noun, VerbTypes verb, DescriptorTypes descriptor)
        {
            Sentence sentence = new Sentence
            {
                Noun       = noun,
                Verb       = verb,
                Descriptor = descriptor
            };

            return(sentence);
        }
示例#5
0
文件: Idea.cs 项目: JacobFV/Sale
 public Idea(Idea idea)
 {
     this.verb                          = idea.verb;
     this.DOPisIt                       = idea.DOPisIt;
     this.subject                       = idea.subject;
     this.IOPwasSe                      = idea.IOPwasSe;
     this.ideaType                      = idea.ideaType;
     this.negitive                      = idea.negitive;
     this.verbTypes                     = idea.verbTypes;
     this.DOPgender                     = idea.DOPgender;
     this.foundSubject                  = idea.foundSubject;
     this.directObject                  = idea.directObject;
     this.auxilleryVerb                 = idea.auxilleryVerb;
     this.indirectObject                = idea.indirectObject;
     this.eitherIOPorDOP                = idea.eitherIOPorDOP;
     this.masculineSubject              = idea.masculineSubject;
     this.possiblyInfinitive            = idea.possiblyInfinitive;
     this.possiblyTuCommandOrThirdPeron = idea.possiblyTuCommandOrThirdPeron;
 }
示例#6
0
 public void OpenToChoose(VerbTypes newVerb)
 {
     SetChoosingState(InventoryState.ChoosingVerb);
     targetVerb = newVerb;
     playerStateGUI.DiaryLog.text = targetVerb.ToString();
 }
示例#7
0
 public static bool IsMovementType(VerbTypes Type)
 {
     return(Type == VerbTypes.Walk || Type == VerbTypes.Jump || Type == VerbTypes.Roll);
 }
示例#8
0
 public void ChangeVerbB(VerbTypes verb)
 {
     VerbB = VerbManager.GetVerb(agent, verb, VerbB.Modifier);
 }
示例#9
0
 public void ChangeMovementVerb(VerbTypes verb)
 {
     VerbMovement = VerbManager.GetVerb(agent, verb, VerbMovement.Modifier);
 }
示例#10
0
 public void SetVerb(VerbTypes verb)
 {
     this.verb = verb;
     UpdateGUI();
 }