internal Casilla(int xi, int yi, Kibus k) { kib = k; x = xi; y = yi; pic = new PictureBox(); pic.Location = new Point(x * 50 + 205, y * 50 + 15); pic.Size = new Size(50, 50); pic.Image = Image.FromFile("Resources\\Pasto\\pastito.png"); pic.MouseDown += new System.Windows.Forms.MouseEventHandler(kib.MDown); pic.MouseEnter += new System.EventHandler(kib.MEnter); pic.Tag = "pastoFondo"; okupada = false; }
internal bool movin = false;//Determina si lo estoy moviendo kon el teclado internal kibus(int x, int y, Kibus j) { juego = j; grid = j.grid; p.X = x * 50 + 205; p.Y = y * 50 + 15; mono = new PictureBox(); mono.Location = p; mono.Size = new Size(50, 50); mono.Image = Image.FromFile("Resources\\Moves\\F1link.png"); mono.BackgroundImage = grid[x, y].pic.Image; mono.PreviewKeyDown += new System.Windows.Forms.PreviewKeyDownEventHandler(PreviewKeyDown); mono.Tag = "F1link"; dir = "F"; Moves move = new Moves(p, oposite(dir)); pila.Push(move); }
internal Abeja(Point k, Kibus j, int nb) { nBee = nb; board[nb] = new Board(); p = aux = memoria = kib = k; gm = j; mono = new PictureBox(); mono.Location = p; mono.BackColor = Color.Transparent; mono.Size = new Size(50, 50); mono.Image = Image.FromFile("Resources\\Bee\\h0bee.png"); mono.BackgroundImage = gm.grid[(p.X - 205) / 50, (p.Y - 15) / 50].pic.Image; mono.Tag = "bee"; j.Controls.Add(mono); mono.BringToFront(); dir = "0"; Moves move = new Moves(p, oposite(dir)); hBee = new Thread(new ThreadStart(hiloBee)); hBee.Start(); }
public Epocas(Kibus k) { gm = k; InitializeComponent(); }
internal Guardar(Kibus k) { kib = k; InitializeComponent(); }