protected ArenaObject(Arena parent, double x, double y) { this.x = x; this.y = y; speedx = 0; speedy = 0; this.parent = parent; }
public BaseExplosion(Arena P, double X, double Y) : base(P, X, Y) { }
public BulletObject(Arena P, double X, double Y) : base(P, X, Y) { }
// Robot is the only ArenaObject with no OnSpawn. internal Robot(Arena P, double X, double Y, int number, RobotFile file) : base(P, X, Y) { this.number = number; this.file = file; interp = new Interpreter(new MemoryStream(file.program)); // Load all the default registers StockRegisters.inject(this); team = 0; alive = true; deathReason = DeathReason.Suicided; icon = 0; hardware = file.hardware; energy = hardware.energyMax; damage = hardware.damageMax; shield = 0; aim = 90; look = 0; scan = 0; collision = false; wall = false; friend = false; stunned = 0; hit = 0; kills = 0; survival = 0; killTime = new int[6]{ -1, -1, -1, -1, -1, -1 }; deathTime = -1; killer = null; // FIXME: actually implement the history history = new Int16[50]; // FIXME: actually implement signals signals = new Int16[10]; }
public HellboreExplosion(Arena P, double X, double Y) : base(P, X, Y) { }
public HellboreObject(Arena P, double X, double Y) : base(P, X, Y) { }
public MissileObject(Arena P, double X, double Y) : base(P, X, Y) { }
protected Projectile(Arena P, double X, double Y) : base(P, X, Y) { }
public StunnerObject(Arena P, double X, double Y) : base(P, X, Y) { }
public StunnerExplosion(Arena P, double X, double Y) : base(P, X, Y) { }
private void reset_game() { stop_game(); arena = new Arena.Arena(); arenaIt = null; arenaview.arena = arena; arenaview.QueueDraw(); chrononlabel.Text = "Chronon 0 (20 c/s)"; seedlabel.Markup = "<small>Match seed: " + arena.seed + "</small>"; for (int i = 0; i < 6; i++) { if (files[i] == null) continue; Robot robot = arena.loadRobot(files[i]); robotlist[robot.number].robot = robot; robotlist[robot.number].update_info(); } openaction.Sensitive = true; }