Beispiel #1
0
 public PosterActivity(Poster poster, CentraProccessing cpu, string label)
 {
     st          = Game.OUG;
     this.label  = label;
     this.poster = poster;
     this.cpu    = cpu;
 }
Beispiel #2
0
 public ChoseMapMenu(Poster poster, CentraProccessing cpu)
 {
     st          = Game.OUG;
     label       = "Map Menu";
     index       = 0;
     source      = new List <string>();
     item        = new List <string>();
     this.poster = poster;
     this.cpu    = cpu;
     try
     {
         string[] file = Directory.GetFiles("map").Where(n => n.EndsWith(".mp")).ToArray();
         if (file.Length == 0)
         {
             throw new Exception();
         }
         int i = 1;
         foreach (var s in file)
         {
             source.Add(s);
             item.Add(i + "." + Path.GetFileName(s).Split('.')[0]);
             i++;
         }
     }
     catch (Exception e)
     {
         Environment.Exit(1);
     }
 }
Beispiel #3
0
 public FirstMenu(Poster poster, CentraProccessing cpu)
 {
     st          = Game.OUG;
     label       = "T.P.Menu";
     index       = 0;
     this.poster = poster;
     this.cpu    = cpu;
 }
Beispiel #4
0
 public EndGame(Poster poster, CentraProccessing cpu, string label, string[] data)
 {
     st          = Game.OUG;
     this.label  = label;
     this.poster = poster;
     this.cpu    = cpu;
     this.data   = data;
 }
Beispiel #5
0
 public SpeedMenu(Poster poster, CentraProccessing cpu)
 {
     this.poster = poster;
     this.cpu    = cpu;
     index       = 0;
     label       = "S.Menu";
     st          = Game.OUG;
 }
Beispiel #6
0
 public Option(Poster poster, CentraProccessing cpu, string label)
 {
     st          = Game.OUG;
     this.label  = label;
     this.poster = poster;
     this.cpu    = cpu;
     key         = '\0';
     index       = 0;
 }
Beispiel #7
0
 public MultiMapActivity(User user, Map canvas, CentraProccessing cpu, string label)
 {
     key         = '\0';
     this.cpu    = cpu;
     this.label  = label;
     this.user   = user;
     this.canvas = canvas;
     this.canvas.addSnake(new UserSnake(5));
     part = canvas.getBigBaitTimeLimt / 4;
 }
Beispiel #8
0
 public MapNotification(Poster poster, CentraProccessing cpu, Map map, User user, string label, string[] data)
 {
     st          = Game.OUG;
     this.label  = label;
     this.poster = poster;
     this.cpu    = cpu;
     this.data   = data;
     this.map    = map;
     this.user   = user;
 }
Beispiel #9
0
 public SettingMenu(Poster poster, CentraProccessing cpu)
 {
     st          = Game.OUG;
     label       = "Setting";
     menuType    = 0;
     clY         = Game.colorIndex;
     fiY         = Game.figureIndex;
     ctY         = Game.mapColorIndex;
     this.poster = poster;
     this.cpu    = cpu;
 }
Beispiel #10
0
 static void Main(string[] args)
 {
     cpu = new CentraProccessing();
     keyEvent();
 }