Ejemplo n.º 1
0
 public override void performAction(ProseRuntime runtime)
 {
     //	Create/fetc a possibly new word object representing the words.
     Word newWord = runtime.addWordFromRawWords(rawWordsToBindAsWord);
     //	Bind the word using inheritence
     newWord.isa = new Word[] { parent };
 }
        public override void performAction(ProseRuntime runtime)
        {
            //	Create/fetc a possibly new word object representing the words.
            Word newWord = runtime.addWordFromRawWords(rawWordsToBindAsWord);

            //	Bind the word using inheritence
            newWord.isa = new Word[] { parent };
        }
Ejemplo n.º 3
0
 public virtual void performAction(ProseRuntime runtime)
 {
     //	Create/fetc a possibly new word object representing the words.
     Word newWord = runtime.addWordFromRawWords(rawWordsToBindAsWord);
     //	Bind the word using inheritence
     Word[] newIsa = new Word[newWord.isa.Length + 1];		//	Copy all the old inherited words.
     Array.Copy(newWord.isa, newIsa, newWord.isa.Length);
     newIsa[newWord.isa.Length] = parent;					//	Add this new one.
     newWord.isa = newIsa;
 }
Ejemplo n.º 4
0
        virtual public void performAction(ProseRuntime runtime)
        {
            //	Create/fetc a possibly new word object representing the words.
            Word newWord = runtime.addWordFromRawWords(rawWordsToBindAsWord);

            //	Bind the word using inheritence
            Word[] newIsa = new Word[newWord.isa.Length + 1];                           //	Copy all the old inherited words.
            Array.Copy(newWord.isa, newIsa, newWord.isa.Length);
            newIsa[newWord.isa.Length] = parent;                                        //	Add this new one.
            newWord.isa = newIsa;
        }