예제 #1
0
 protected ArenaObject(Arena parent, double x, double y)
 {
     this.x = x;
     this.y = y;
     speedx = 0;
     speedy = 0;
     this.parent = parent;
 }
예제 #2
0
 public BaseExplosion(Arena P, double X, double Y)
     : base(P, X, Y)
 {
 }
예제 #3
0
파일: Bullet.cs 프로젝트: mcbodge/robowarx
 public BulletObject(Arena P, double X, double Y)
     : base(P, X, Y)
 {
 }
예제 #4
0
파일: Robot.cs 프로젝트: mcbodge/robowarx
        // 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];
        }
예제 #5
0
 public HellboreExplosion(Arena P, double X, double Y)
     : base(P, X, Y)
 {
 }
예제 #6
0
 public HellboreObject(Arena P, double X, double Y)
     : base(P, X, Y)
 {
 }
예제 #7
0
파일: Missile.cs 프로젝트: mcbodge/robowarx
 public MissileObject(Arena P, double X, double Y)
     : base(P, X, Y)
 {
 }
예제 #8
0
 protected Projectile(Arena P, double X, double Y)
     : base(P, X, Y)
 {
 }
예제 #9
0
파일: Stunner.cs 프로젝트: mcbodge/robowarx
 public StunnerObject(Arena P, double X, double Y)
     : base(P, X, Y)
 {
 }
예제 #10
0
파일: Stunner.cs 프로젝트: mcbodge/robowarx
 public StunnerExplosion(Arena P, double X, double Y)
     : base(P, X, Y)
 {
 }
예제 #11
0
        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;
        }