Beispiel #1
0
        public void Next(TheGame game)
        {
            CurrentLine++;
            var curLine = 0;

            for (var i = 0; i < CurrentBigLine; i++)
            {
                curLine += LinesCapacity[i];
            }
            if (CurrentLine >= curLine + LinesCapacity[CurrentBigLine])
            {
                CurrentBigLine++;
                if (CurrentBigLine >= LinesCapacity.Length)
                {
                    CurrentBigLine = 0;
                    CurrentLine    = 0;
                }
                game.IsDialog    = false;
                game.CurrentText = null;
            }
        }
Beispiel #2
0
        public static void FillEvents(TheGame game)
        {
            var rooms = game.Rooms;

            rooms[0].AddEvent(new GameEvent(240, 564, (x) => rooms[0].Dialogs[0].StartDialog(x)));
            rooms[0].AddEvent(new GameEvent(700, 564, (x) =>
            {
                rooms[0].Dialogs[1].StartDialog(x);
                game.Rooms[game.RoomI].CurrentPlayer.CreateCheckPoint();
            }));
            rooms[0].AddEvent(new GameEvent(1290, 564, (x) => MyForm.SwitchRooms(1, Direction.Right, false)));

            rooms[1].AddEvent(new GameEvent(100, 564, (x) => MyForm.SwitchRooms(0, Direction.Left, false)));
            rooms[1].AddEvent(new GameEvent(720, 564, (x) => rooms[1].Dialogs[0].StartDialog(x)));
            rooms[1].AddEvent(new GameEvent(1290, 564, (x) => MyForm.SwitchRooms(2, Direction.Right, false)));

            rooms[2].AddEvent(new GameEvent(100, 564, (x) => MyForm.SwitchRooms(1, Direction.Left, false)));
            rooms[2].AddEvent(new GameEvent(1290, 564, (x) => MyForm.SwitchRooms(3, Direction.Right, false)));

            rooms[3].AddEvent(new GameEvent(100, 564, (x) => MyForm.SwitchRooms(2, Direction.Left, false)));
            rooms[3].AddEvent(new GameEvent(1290, 564, (x) => MyForm.SwitchRooms(4, Direction.Right, false)));

            rooms[4].AddEvent(new GameEvent(100, 564, (x) => MyForm.SwitchRooms(3, Direction.Left, false)));
            rooms[4].AddEvent(new GameEvent(700, 564, (x) => rooms[4].Dialogs[0].StartDialog(x)));
            rooms[4].AddEvent(new GameEvent(950, 564, (x) => rooms[4].Dialogs[1].StartDialog(x)));
            rooms[4].AddEvent(new GameEvent(1290, 564, (x) => MyForm.SwitchRooms(5, Direction.Right, false)));

            rooms[5].AddEvent(new GameEvent(100, 564, (x) => MyForm.SwitchRooms(4, Direction.Left, false)));
            rooms[5].AddEvent(new GameEvent(700, 564, (x) =>
            {
                rooms[5].Dialogs[0].StartDialog(x);
                game.Rooms[game.RoomI].CurrentPlayer.CreateCheckPoint();
            }));
            rooms[5].AddEvent(new GameEvent(1290, 564, (x) => MyForm.SwitchRooms(6, Direction.Right, false)));

            rooms[6].AddEvent(new GameEvent(100, 564, (x) => MyForm.SwitchRooms(5, Direction.Left, false)));
        }
Beispiel #3
0
 public void StartDialog(TheGame game)
 {
     game.IsDialog    = true;
     game.CurrentText = this;
 }