Beispiel #1
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 ();
        }
Beispiel #2
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 ();
        }
Beispiel #3
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 ();
        }
Beispiel #4
0
 public Heliboy(int x, int y, Background bg, Robot r)
     : base(bg, r, x, y, PictureManager.Pictures ["heliboy1"])
 {
 }
Beispiel #5
0
 public Enemy(Background bg, Robot r, int x, int y, IImage image)
     : base(x, y, image)
 {
     robot = r;
     this.bg = bg;
 }