Exemplo n.º 1
0
        public Background(int x, int y, AndroidImage image, Robot r)
        {
            this._x = x;
            this._y = y;
            _speedX = 0;

            this._bgImage = image;
        }
Exemplo n.º 2
0
        public Tile(int x, int y, TileType type, Background bg, Robot robot)
        {
            this._x = x * 40;
            this._y = y * 40;
            this._bg = bg;
            this.robot = robot;

            boundary = new Rect ();

            this.Type = type;
            findPicture ();
        }
Exemplo n.º 3
0
        public GameScreen(IGame game)
            : base(game)
        {
            //Initialize game-objects
            bg = new Background(0, 0, PictureManager.Pictures["background"] as AndroidImage, robot);

            robot = new Robot (0, 0);
            hb = new Heliboy (340, 360, bg, robot);

            addCharacterAnimations ();
            addHeliboyAnimations ();

            currentCharacterSprite = anim.Image;

            loadMap ();

            initializePaint ();
            initializeButtons ();
        }
Exemplo n.º 4
0
        /// <summary>
        /// Nullify this instance.
        /// </summary>
        private void nullify()
        {
            robot = null;
            hb = null;
            bg = null;
            paint = null;
            anim = null;
            hAnim = null;
            currentCharacterSprite = null;

            System.GC.Collect ();
        }
Exemplo n.º 5
0
 public Heliboy(int x, int y, Background bg, Robot r)
     : base(bg, r, x, y, PictureManager.Pictures ["heliboy1"])
 {
 }
Exemplo n.º 6
0
 public Enemy(Background bg, Robot r, int x, int y, IImage image)
     : base(x, y, image)
 {
     robot = r;
     this.bg = bg;
 }