Beispiel #1
0
 public CommandMessage(
     IAudioEngine s,
     EventManager m,
     string text1,
     string text2,
     string text3,
     int fa,
     byte faNo,
     bool mo,
     SaveData save)
     : base(s, m, save)
 {
     this.faseseet  = fa;
     this.faseNo    = faNo;
     this.printfase = true;
     this.text      = new string[3] {
         text1, text2, text3
     };
     this.Init();
     this.mono = mo;
     if (!this.mono)
     {
         return;
     }
     this.fasepattern = CommandMessage.FACEPATTERN.mono;
 }
Beispiel #2
0
        protected void FaseAnimation()
        {
            ++this.faseflame;
            if (this.faseflame <= this.fasewait)
            {
                return;
            }
            this.faseflame = 0;
            switch (this.fasepattern)
            {
            case CommandMessage.FACEPATTERN.neutral:
                if (this.arrowprint)
                {
                    this.fasepattern = CommandMessage.FACEPATTERN.harfclose;
                    this.closing     = true;
                    this.fasewait    = 1;
                    break;
                }
                if (!this.longwaiting && !this.noTalk)
                {
                    if (this.manyopen > 2)
                    {
                        this.fasepattern = CommandMessage.FACEPATTERN.mouse1;
                        this.fasewait    = 2;
                        this.manyopen    = 0;
                    }
                    else
                    {
                        this.fasepattern = CommandMessage.FACEPATTERN.mouse2;
                        this.fasewait    = 4;
                        ++this.manyopen;
                    }
                }
                break;

            case CommandMessage.FACEPATTERN.mouse1:
            case CommandMessage.FACEPATTERN.mouse2:
                this.fasepattern = CommandMessage.FACEPATTERN.neutral;
                this.fasewait    = (byte)this.Random.Next(6);
                break;

            case CommandMessage.FACEPATTERN.harfclose:
                if (this.closing)
                {
                    this.fasepattern = CommandMessage.FACEPATTERN.close;
                    this.fasewait    = 7;
                    break;
                }
                this.fasepattern = CommandMessage.FACEPATTERN.neutral;
                this.fasewait    = this.Random.Next(60, 300);
                break;

            case CommandMessage.FACEPATTERN.close:
                this.fasepattern = CommandMessage.FACEPATTERN.harfclose;
                this.closing     = false;
                this.fasewait    = 1;
                break;
            }
        }
Beispiel #3
0
 protected void Init()
 {
     this.massage      = this.text;
     this.nowscene     = CommandMessage.SCENE.printing;
     this.fasepattern  = CommandMessage.FACEPATTERN.neutral;
     this.endprint     = 0;
     this.printfonts   = 0;
     this.arrowprint   = false;
     this.faseflame    = 0;
     this.frame        = 0;
     this.manyopen     = 0;
     this.fasewait     = 0;
     this.wait         = 0;
     this.shortmassage = new string[3];
     this.canskip      = true;
     this.longwaiting  = false;
     this.shortmassage = new string[3] {
         "", "", ""
     };
     this.parallelEventManagers = new List <EventManager>();
 }