Class AbstractMinimapScale

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected Vector2d aux2d1  
      protected Vector2d aux2d2  
      protected Vector3d aux3d1  
      protected Vector3d aux3d2  
      protected ICamera cam  
      protected com.badlogic.gdx.graphics.Color camc  
      protected float[] camd  
      protected float[] camp  
      protected double extentDown
      Extent, in whatever units, of the minimap - where the edge is
      protected double extentUp
      Extent, in whatever units, of the minimap - where the edge is
      protected com.badlogic.gdx.graphics.g2d.BitmapFont font  
      protected double from
      Conversions to and from internal units
      protected com.badlogic.gdx.graphics.OrthographicCamera ortho  
      protected com.badlogic.gdx.graphics.g2d.SpriteBatch sb  
      protected int side  
      protected int side2  
      protected int sideshort  
      protected int sideshort2  
      protected com.badlogic.gdx.graphics.glutils.ShapeRenderer sr  
      protected com.badlogic.gdx.graphics.Color sunc  
      protected float suns  
      protected com.badlogic.gdx.graphics.Color textbc  
      protected com.badlogic.gdx.graphics.Color textcc  
      protected com.badlogic.gdx.graphics.Color textgc  
      protected com.badlogic.gdx.graphics.Color textmc  
      protected com.badlogic.gdx.graphics.Color textrc  
      protected com.badlogic.gdx.graphics.Color textyc  
      protected double to
      Conversions to and from internal units
      protected Matrix4d trans  
    • Field Detail

      • ortho

        protected com.badlogic.gdx.graphics.OrthographicCamera ortho
      • sb

        protected com.badlogic.gdx.graphics.g2d.SpriteBatch sb
      • sr

        protected com.badlogic.gdx.graphics.glutils.ShapeRenderer sr
      • font

        protected com.badlogic.gdx.graphics.g2d.BitmapFont font
      • side

        protected int side
      • sideshort

        protected int sideshort
      • side2

        protected int side2
      • sideshort2

        protected int sideshort2
      • extentUp

        protected double extentUp
        Extent, in whatever units, of the minimap - where the edge is
      • extentDown

        protected double extentDown
        Extent, in whatever units, of the minimap - where the edge is
      • to

        protected double to
        Conversions to and from internal units
      • from

        protected double from
        Conversions to and from internal units
      • sunc

        protected com.badlogic.gdx.graphics.Color sunc
      • camc

        protected com.badlogic.gdx.graphics.Color camc
      • textbc

        protected com.badlogic.gdx.graphics.Color textbc
      • textrc

        protected com.badlogic.gdx.graphics.Color textrc
      • textgc

        protected com.badlogic.gdx.graphics.Color textgc
      • textyc

        protected com.badlogic.gdx.graphics.Color textyc
      • textcc

        protected com.badlogic.gdx.graphics.Color textcc
      • textmc

        protected com.badlogic.gdx.graphics.Color textmc
      • camp

        protected float[] camp
      • camd

        protected float[] camd
      • suns

        protected float suns
    • Constructor Detail

      • AbstractMinimapScale

        public AbstractMinimapScale()
    • Method Detail

      • initialize

        protected void initialize​(com.badlogic.gdx.graphics.OrthographicCamera ortho,
                                  com.badlogic.gdx.graphics.g2d.SpriteBatch sb,
                                  com.badlogic.gdx.graphics.glutils.ShapeRenderer sr,
                                  com.badlogic.gdx.graphics.g2d.BitmapFont font,
                                  int side,
                                  int sideshort,
                                  double to,
                                  double from,
                                  double extentUp,
                                  double extentDown)
      • updateLocal

        protected abstract void updateLocal()
      • position

        public float[] position​(Vector3d pos,
                                float[] out)
      • direction

        public float[] direction​(Vector3d dir,
                                 float[] out)
      • px

        protected float px​(float px)
      • u2Px

        protected int u2Px​(double units,
                           float side)
        Converts units to pixels, given the side/2 of the end minimap
        Parameters:
        units - The value in whatever units
        side - Side/2 of minimap
        Returns:
        Pixel coordinate
      • renderCameraSide

        protected void renderCameraSide()
      • renderCameraSide

        protected void renderCameraSide​(float viewportAlpha)
      • renderCameraTop

        protected void renderCameraTop()
      • renderCameraTop

        protected void renderCameraTop​(float viewportAlpha)