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