Example #1
0
    //-------------------------------------------------------------------------
    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();
    }
Example #2
0
    //-------------------------------------------------------------------------
    public void update(float elapsed_tm)
    {
        if (mScene.isBot())
        {
            return;
        }

        mCSpriteTurretScoreShow.update(elapsed_tm);
        mSpriteTurret.update(elapsed_tm);
    }