Exemplo n.º 1
0
 public void Initialize(GamePage p)
 {
     parent = p;
     tab = new Dictionary<string, TreatCmd>();
     tab["msz"] = msz;
     tab["bct"] = bct;
     tab["tna"] = tna;
     tab["pnw"] = pnw;
     tab["ppo"] = ppo;
     tab["plv"] = plv;
     tab["pin"] = pin;
     tab["pex"] = pex;
     tab["pbc"] = pbc;
     tab["pic"] = pic;
     tab["pie"] = pie;
     tab["pfk"] = pfk;
     tab["pdr"] = pdr;
     tab["pgt"] = pgt;
     tab["pdi"] = pdi;
     tab["enw"] = enw;
     tab["eht"] = eht;
     tab["ebo"] = ebo;
     tab["edi"] = edi;
     tab["sgt"] = sgt;
     tab["seg"] = seg;
     tab["smg"] = smg;
     tab["suc"] = suc;
     tab["sbp"] = sbp;
 }
Exemplo n.º 2
0
Arquivo: Map.cs Projeto: fiahil/Zappy
        public Map(GamePage game)
        {
            this.dim = Vector2.Zero;
            this.map = null;
            this.edge = new bool[4];
            this._wall = new Sprite[9];
            this.clouds = new Point[5];

            this.clouds[0] = new Point(300, 100);
            this.clouds[1] = new Point(600, 350);
            this.clouds[2] = new Point(900, 50);
            this.clouds[3] = new Point(1200, 300);
            this.clouds[4] = new Point(0, 250);

            this.screen = new Rectangle(0, 0, 1280, 720);
            this.square = Rectangle.Empty;

            this.Hrep = TimeSpan.Zero;
            this.Vrep = TimeSpan.Zero;

            this.edge[0] = false;
            this.edge[1] = false;
            this.edge[2] = false;
            this.edge[3] = false;

            this.view = 0;
            this.square_details_pos = Point.Zero;
            this.square_details_on = false;
            this.square_setails_timer = TimeSpan.Zero;
            this.Game = game;
        }
Exemplo n.º 3
0
        public void Initialize(GamePage p)
        {
            t = new Treatment();
            s = new SocketClient();
            _in = new Queue<string>();

            t.Initialize(p);
            s.Connect(Infos.GetInstance().host, Int32.Parse(Infos.GetInstance().port));
        }