예제 #1
0
 public FreeToEach2(CardEng eng, master m1) : base(eng, m1)
 {
     CardOutput = new Transaction(1, 1, 1, 1);
     cardName   = "FreeToEach2";
     Master     = m1;
     mySprite   = CheckForMissingArt(basicFactoryPath + cardName);
 }
        public ActionResult login(master au)
        {
            string user = au.username;
            string pass = au.password;

            using (db)
            {
                string status;
                var    use = (from s in db.masters
                              where s.username == user && s.password == pass
                              select s).FirstOrDefault();
                if (use != null)
                {
                    Session["username"] = use.username.ToString();
                    status = "1";
                }
                else
                {
                    status = "3";
                }
                return(new JsonResult {
                    Data = new { status = status }
                });
            }
        }
예제 #3
0
 public YellowToCoin2(CardEng eng, master m1) : base(eng, m1)
 {
     cardName   = "YellowToCoin2";
     CardCost   = new Transaction(0, 0, 2, 0);
     CardOutput = new Transaction(0, 0, 0, 2);
     mySprite   = CheckForMissingArt(basicFactoryPath + cardName);
 }
예제 #4
0
 public YellowToUpgrade1(CardEng eng, master m1) : base(eng, m1)
 {
     CardCost   = new Transaction(0, 0, 1, 0);
     cardName   = "YellowToUpgrade1";
     mySprite   = CheckForMissingArt(basicFactoryPath + cardName);
     CanUpgrade = true;
 }
예제 #5
0
 public FreeToBlue2(CardEng eng, master m1) : base(eng, m1)
 {
     CardCost   = new Transaction();
     CardOutput = new Transaction(0, 2, 0, 0);
     cardName   = "FreeBlue2";
     mySprite   = CheckForMissingArt(LevelOneFactoryPath + cardName);
 }
예제 #6
0
 public RedToBlue4(CardEng eng, master m1) : base(eng, m1)
 {
     CardCost   = new Transaction(4, 0, 0, 0);
     CardOutput = new Transaction(0, 7, 0, 0);
     cardName   = "RedToBlue4";
     mySprite   = CheckForMissingArt(LevelOneFactoryPath + cardName);
 }
예제 #7
0
 public BlueToFactory2(CardEng eng, master m1) : base(eng, m1)
 {
     cardName   = "BlueToFactory2";
     CardCost   = new Transaction(0, 1, 0, 0);
     mySprite   = CheckForMissingArt(basicFactoryPath + cardName);
     CanUpgrade = true;
 }
예제 #8
0
 public BlueToYellow2(CardEng eng, master m1) : base(eng, m1)
 {
     CardCost = new Transaction(0, 1, 0, 0);
     CardCost = new Transaction(0, 0, 3, 0);
     cardName = "BlueToYellow2";
     mySprite = CheckForMissingArt(basicFactoryPath + cardName);
 }
예제 #9
0
 public BlueToRed2(CardEng eng, master m1) : base(eng, m1)
 {
     CardCost = new Transaction(0, 2, 0, 0);
     CardCost = new Transaction(3, 0, 0, 0);
     cardName = "BlueToRed2";
     mySprite = Resources.Load <Sprite>(LevelOneFactoryPath + cardName);
 }
예제 #10
0
 public RedToBlue2(CardEng eng, master m1) : base(eng, m1)
 {
     CardCost   = new Transaction(1, 0, 0, 0);
     CardOutput = new Transaction(0, 2, 0, 0);
     cardName   = "redToBlue2";
     mySprite   = Resources.Load <Sprite>(basicFactoryPath + cardName);
 }
예제 #11
0
 public YellowResource(CardEng eng, master m1) : base(eng, m1)
 {
     cardName    = "Yellow";
     mySprite    = Resources.Load <Sprite>(optionPath + cardName);
     CanUpgrade  = false;
     FactoryCost = m1.yellowCost1;
     myCurrency  = Currency.yellow;
 }
예제 #12
0
    public static List <Card> Options(CardEng cardEng, master master)
    {
        List <Card> options = new List <Card>();

        options.Add(new TrashOption(cardEng, master));
        options.Add(new UpgradeOption(cardEng, master));
        return(options);
    }
예제 #13
0
 public YellowToBlue1(CardEng eng, master m1) : base(eng, m1)
 {
     CardCost   = new Transaction(0, 0, 1, 0);
     CardOutput = new Transaction(0, 1, 0, 0);
     cardName   = "YellowToBlue1";
     mySprite   = Resources.Load <Sprite>(LevelOneFactoryPath + cardName);
     CanUpgrade = true;
 }
예제 #14
0
 public BlueToRed1(CardEng eng, master m1) : base(eng, m1)
 {
     cardName   = "BlueToRed1";
     CardCost   = new Transaction(0, 1, 0, 0);
     CardOutput = new Transaction(1, 0, 0, 0);
     mySprite   = Resources.Load <Sprite>(LevelOneFactoryPath + cardName);
     CanUpgrade = true;
 }
예제 #15
0
 public BlueResource(CardEng eng, master m1) : base(eng, m1)
 {
     cardName    = "Blue";
     mySprite    = Resources.Load <Sprite>(optionPath + cardName);
     CanUpgrade  = true;
     FactoryCost = m1.blueCost1;
     myCurrency  = Currency.blue;
 }
예제 #16
0
 public RedToBlue3(CardEng eng, master m1) : base(eng, m1)
 {
     CardCost   = new Transaction(3, 0, 0, 0);
     CardOutput = new Transaction(0, 5, 0, 0);
     cardName   = "RedToBlue3";
     mySprite   = CheckForMissingArt(LevelOneFactoryPath + cardName);
     CanUpgrade = true;
 }
예제 #17
0
 public RedResource(CardEng eng, master m1) : base(eng, m1)
 {
     cardName    = "Red";
     mySprite    = Resources.Load <Sprite>(optionPath + cardName);
     CanUpgrade  = false;
     FactoryCost = m1.redCost1;
     myCurrency  = Currency.red;
 }
예제 #18
0
 public RBYToCoin1(CardEng eng, master m1) : base(eng, m1)
 {
     CardCost   = new Transaction(2, 2, 2, 0);
     CardOutput = new Transaction(0, 0, 0, 4);
     cardName   = "RBYToCoin1";
     mySprite   = CheckForMissingArt(basicFactoryPath + cardName);
     CanUpgrade = true;
 }
예제 #19
0
 public RBYToCoin2(CardEng eng, master m1) : base(eng, m1)
 {
     CardCost = new Transaction(1, 1, 2, 0);
     CardCost = new Transaction(0, 0, 0, 4);
     cardName = "RBYToCoin2";
     Master   = m1;
     mySprite = CheckForMissingArt(basicFactoryPath + cardName);
 }
예제 #20
0
 public CoinResource(CardEng eng, master m1) : base(eng, m1)
 {
     cardName    = "Coin";
     mySprite    = Resources.Load <Sprite>(optionPath + cardName);
     CanUpgrade  = false;
     FactoryCost = m1.coinCost1;
     myCurrency  = Currency.coin;
 }
예제 #21
0
 public FreeToYellow1(CardEng eng, master m1) : base(eng, m1)
 {
     CardCost   = new Transaction();
     CardOutput = new Transaction(0, 0, 1, 0);
     cardName   = "FreeYellow1";
     mySprite   = CheckForMissingArt(LevelOneFactoryPath + cardName);
     CanUpgrade = true;
 }
예제 #22
0
 public CoinToEach2(CardEng eng, master m1) : base(eng, m1)
 {
     CardCost   = new Transaction(0, 0, 0, 1);
     CardOutput = new Transaction(2, 1, 1, 0);
     cardName   = "CoinToEach2";
     mySprite   = Resources.Load <Sprite>(LevelOneFactoryPath + cardName);
     CanUpgrade = false;
 }
예제 #23
0
 public RedToYellow2(CardEng eng, master m1) : base(eng, m1)
 {
     CardCost   = new Transaction(1, 0, 0, 0);
     CardOutput = new Transaction(0, 0, 1, 0);
     cardName   = "RedToYellow2";
     mySprite   = Resources.Load <Sprite>(LevelOneFactoryPath + cardName);
     CanUpgrade = false;
 }
예제 #24
0
    //costs


    public RedToBlueFactory1(CardEng eng, master m1) : base(eng, m1)
    {
        CardCost   = new Transaction(1, 0, 0, 0);
        CardOutput = new Transaction(0, 2, 0, 0);
        cardName   = "redToBlue1";
        mySprite   = CheckForMissingArt(basicFactoryPath + cardName);
        CanUpgrade = true;
    }
예제 #25
0
 public BlueToYellow1(CardEng eng, master m1) : base(eng, m1)
 {
     CardCost   = new Transaction(0, 1, 0, 0);
     CardOutput = new Transaction(0, 0, 2, 0);
     cardName   = "BlueToYellow1";
     Master     = m1;
     mySprite   = CheckForMissingArt(basicFactoryPath + cardName);
     CanUpgrade = true;
 }
예제 #26
0
 public FreeToEach1(CardEng eng, master m1) : base(eng, m1)
 {
     CardCost   = new Transaction();
     CardOutput = new Transaction(1, 1, 1, 0);
     cardName   = "FreeToEach1";
     Master     = m1;
     mySprite   = CheckForMissingArt(basicFactoryPath + cardName);
     CanUpgrade = true;
 }
예제 #27
0
        public ActionResult Learnmore(string[] id)
        {
            master s = new master();

            s.accessibility = dbContext.Accessibilityy.Find(id);
            s.Amenities     = dbContext.Amenity.Find(id);
            s.campsites     = dbContext.Campsite.Find(id);
            s.data          = dbContext.RootObject.Find(id);
            return(View(s));
        }
예제 #28
0
    public static List <Card> ResorceCards(CardEng cardEng, master master)
    {
        List <Card> cards = new List <Card>();

        cards.Add(new RedResource(cardEng, master));
        cards.Add(new BlueResource(cardEng, master));
        cards.Add(new YellowResource(cardEng, master));
        cards.Add(new CoinResource(cardEng, master));
        return(cards);
    }
예제 #29
0
    public static List <Card> Level1ShopCards(CardEng cardEng, master master)
    {
        List <Card> cards = new List <Card>();

        cards.Add(new BlueToRed1(cardEng, master));
        cards.Add(new RedToYellow1(cardEng, master));
        cards.Add(new YellowToBlue1(cardEng, master));
        cards.Add(new RedToBlue3(cardEng, master));
        cards.Add(new BlueToYellow3(cardEng, master));
        return(cards);
    }
예제 #30
0
    public static List <Card> Level1LockCards(CardEng cardEng, master master)
    {
        List <Card> cards = new List <Card>();

        cards.Add(new FreeToRed2(cardEng, master));
        cards.Add(new FreeToBlue1(cardEng, master));
        cards.Add(new FreeToYellow1(cardEng, master));
        cards.Add(new CoinToEach1(cardEng, master));
        cards.Add(new RBToCoin1(cardEng, master));

        return(cards);
    }
예제 #31
0
 internal abstract void GetCoderInfo(out master._7zip.Legacy.CMethodId id, out byte[] settings);
예제 #32
0
        internal override void GetCoderInfo(out master._7zip.Legacy.CMethodId id, out byte[] settings)
        {
            var stream = new MemoryStream();
            var writer = new BinaryWriter(stream);

            writer.Write((byte)(mNumCyclesPower | ((mSalt.Length == 0 ? 0 : 1) << 7) | ((mSeed.Length == 0 ? 0 : 1) << 6)));

            if (mSalt.Length > 0 || mSeed.Length > 0)
            {
                var saltSize = mSalt.Length == 0 ? 0 : mSalt.Length - 1;
                var seedSize = mSeed.Length == 0 ? 0 : mSeed.Length - 1;
                writer.Write((byte)((saltSize << 4) | seedSize));
            }

            if (mSalt.Length > 0)
                writer.Write(mSalt);

            if (mSeed.Length > 0)
                writer.Write(mSeed);

            settings = stream.ToArray();
            id = master._7zip.Legacy.CMethodId.kAES;
        }