using LOoSE_sLOTS.UI;
using Otter;
using System;

class Global
{
    public static Game GAME = null;
    public static Session PlayerSession;

    public static Speed PlayerSpeed =new Speed(200);//lets try 200;
    public static float PlayerX = 0;
    public static float PlayerY = 0;
    public static float PlayerFiredCoinSpeed = 6f;//was 1

    public static float troopSpeed = 1f;
    public static float enemyBulletSpeed = 4f;//was 1
    public static float civilianSpeed = .2f;//was 1
    public static float bossSpeed = 4f;//was 1

    public const int I_MW = 720;
    public const int I_MH = 480;

    public const int MW = 1440;
    public const int MH = 960;
    public const int GRID_WIDTH = 16;
    public const int GRID_HEIGHT = 16;

    public static bool GiveHimTheMoney = false;
    public static bool GaveHimHisMoney = false;
    public static bool SkipIntro = false;
    public static bool SkipCasinoIntro = false;
    public static bool AllowedToCollideWithTruck = false;
    public static int NumberOfSlotMachinesDropped = 0;
    public static int NumberOfSnipers = 0;
    public static int BossHealth = 100;//was 100

    public static float PickupTruckX = 0;
    public static float PickupTruckY = 0;

    public static int PlayerHealth = 100;
    public static float CiviliansKilled = 0;
    public static int kills = 0;
    public static int score = 0;

    public enum Type
    {
        SOLID,
        NUMBERS,
        INTROCHARACTER,
        SLOTMACHINE,
        SLOTMACHINEDETECTOR,
        COIN,
        SLOTMACHINEPERSON,
        PICKUPTRUCK,
        PLAYER,
        CIVILIAN,
        SNIPER,
        BULLET,
        FIREDCOIN,
        BOSS,
        DEADBOSS
    }

    public static void WriteWord(float x, float y, string word, Color color, float scale, int layer, Scene scene, int destructionTimer, int spacer = 15)
    {
        var a = 0;
        for (var i = 0; i < word.Length; i++)
        {
            scene.Add(new Numbers(x + a, y, word[i].ToString(), color, scale, layer, destructionTimer));
            a += spacer;
        }
    }


}

