Exemplo n.º 1
0
        public Rotation(Context context) : base(context)
        {
            Log.Info("Rotation", "Rotation built");

            gameActivity = (GameActivity)context;
            utilities    = new Utilities(gameActivity);
        }
Exemplo n.º 2
0
        public Utilities(Context context)
        {
            Log.Info("Utilities", "Utilities built");

            gameActivity = (GameActivity)context;
            area         = new Area(gameActivity, this);
        }
Exemplo n.º 3
0
        public Area(Context context, Utilities inUtilities)
        {
            Log.Info("Area", "Area built");

            gameActivity = (GameActivity)context;
            utilities    = inUtilities;
        }
Exemplo n.º 4
0
        public GameMap(Context context) : base(context)
        {
            Log.Info("Map", "Map built");

            gameActivity = (GameActivity)context;
            utilities    = new Utilities(gameActivity);
        }
        public GamePosition(Context context) : base(context)
        {
            Log.Info("Position", "Position built");

            gameActivity = (GameActivity)context;
            utilities    = new Utilities(gameActivity);

            // generate a location request that we will pass into a call for location updates
            locRequest = new LocationRequest();
        }
Exemplo n.º 6
0
        public Hazards(Context context)
        {
            Log.Info("Area", "Area built");

            gameActivity = (GameActivity)context;
            utilities    = new Utilities(gameActivity);

            velocity = 1f / (gameActivity.latLngToKM / (10f / (60f * 60f)));
            degrees  = 0;

            SetDegrees();

            attempts = 0;
        }