//------------------------------------------------------------------------- public void update(float elapsed_tm) { _updateFireAnimation(elapsed_tm); mTurretBarrelSprite.setDirection(mRenderTurret.getTurretAngle()); updateGlow(elapsed_tm); }
//------------------------------------------------------------------------- public void create(CRenderScene scene, CRenderTurret render_turret) { mScene = scene; if (mScene.isBot()) return; mCSpriteTurretScoreShow = new CSpriteTurretScoreShow(); mCSpriteTurretScoreShow.create(scene, render_turret); mSpriteTurret = new CSpriteTurret(); mSpriteTurret.create(scene, render_turret); mSpriteTurret.aimAt(render_turret.getTurretAngle()); mSpriteTurret.displayRate(render_turret.getTurretRate()); mSpriteTurret.reloadAnimation(); }
//------------------------------------------------------------------------- public void create(CRenderScene scene, CRenderTurret render_turret) { mScene = scene; if (mScene.isBot()) { return; } mCSpriteTurretScoreShow = new CSpriteTurretScoreShow(); mCSpriteTurretScoreShow.create(scene, render_turret); mSpriteTurret = new CSpriteTurret(); mSpriteTurret.create(scene, render_turret); mSpriteTurret.aimAt(render_turret.getTurretAngle()); mSpriteTurret.displayRate(render_turret.getTurretRate()); mSpriteTurret.reloadAnimation(); }