Exemplo n.º 1
0
 public Site(RedSkyGame game, Region region, Vector2 loc)
     : base(game)
 {
     GameRef  = game;
     Region   = region;
     Location = loc;
 }
Exemplo n.º 2
0
 public ScreenHandler(RedSkyGame game)
     : base(game)
 {
     GameRef   = game;
     drawOrder = startDrawOrder;
     Initialize();
 }
Exemplo n.º 3
0
 public GameScreen(int width, int height, RedSkyGame game, ScreenHandler handler)
     : base(width, height)
 {
     screenHandler   = handler;
     Game            = game;
     childComponents = new List <GameComponent>();
 }
Exemplo n.º 4
0
        static public List <BodyPart> GetBaseHumanoidBodyParts(RedSkyGame game)
        {
            List <BodyPart> BodyParts = new List <BodyPart>();

            BodyParts.Add(new BodyPart(game, "Head", BodyPartType.Head, false, true));

            BodyParts.Add(new BodyPart(game, "Body", BodyPartType.Body, false, true));

            //Arms
            BodyPart LeftArm = new BodyPart(game, "Left Arm", BodyPartType.Arm, false, true);

            BodyParts.Add(LeftArm);
            BodyPart LeftHand = new BodyPart(game, "Left Hand", BodyPartType.Hand, true, true);

            LeftArm.Attach(LeftHand);
            for (int i = 0; i < 5; i++)
            {
                LeftHand.Attach(new BodyPart(game, "Left Finger " + i.ToString(), BodyPartType.Finger, false, true));
            }
            BodyPart RightArm = new BodyPart(game, "Right Arm", BodyPartType.Arm, false, true);

            RightArm.EquipWith(LeftArm);
            BodyParts.Add(RightArm);
            BodyPart RightHand = new BodyPart(game, "Right Hand", BodyPartType.Hand, true, true);

            RightHand.EquipWith(LeftHand);
            RightArm.Attach(RightHand);
            for (int i = 0; i < 5; i++)
            {
                RightHand.Attach(new BodyPart(game, "Right Finger " + i.ToString(), BodyPartType.Finger, false, true));
            }

            //Legs
            BodyPart LeftLeg = new BodyPart(game, "Left Leg", BodyPartType.Leg, false, true);

            BodyParts.Add(LeftLeg);
            BodyPart LeftFoot = new BodyPart(game, "Left Foot", BodyPartType.Foot, false, true);

            LeftLeg.Attach(LeftFoot);
            for (int i = 0; i < 5; i++)
            {
                LeftFoot.Attach(new BodyPart(game, "Left Toe " + i.ToString(), BodyPartType.Toe, false, false));
            }
            BodyPart RightLeg = new BodyPart(game, "Right Leg", BodyPartType.Leg, false, true);

            RightLeg.EquipWith(LeftLeg);
            BodyParts.Add(RightLeg);
            BodyPart RightFoot = new BodyPart(game, "Right Foot", BodyPartType.Foot, false, true);

            RightFoot.EquipWith(LeftFoot);
            RightLeg.Attach(RightFoot);
            for (int i = 0; i < 5; i++)
            {
                RightFoot.Attach(new BodyPart(game, "Right Toe " + i.ToString(), BodyPartType.Toe, false, false));
            }


            return(BodyParts);
        }
Exemplo n.º 5
0
 public Icon(RedSkyGame game, int page, Vector2 pageloc, int hpage, Vector2 hpageloc, Rectangle screenrect)
     : base(game)
 {
     Page       = page;
     PageRect   = new Rectangle((int)pageloc.X * 24, (int)pageloc.Y * 24, 24, 24);
     hPage      = hpage;
     hPageRect  = new Rectangle((int)hpageloc.X * 24, (int)hpageloc.Y * 24, 24, 24);
     ScreenRect = screenrect;
 }
Exemplo n.º 6
0
 public BodyPart(RedSkyGame game, string name, BodyPartType bodyPartType, bool canhold, bool canwear)
     : base(game)
 {
     Name    = name;
     canHold = canhold;
     Holding = null;
     canWear = canwear;
     Wearing = null;
     Type    = bodyPartType;
 }
Exemplo n.º 7
0
        public Human(RedSkyGame game)
            : base(game)
        {
            InitializeStats();

            Statuses = new List <Status>();
            Skills   = new List <Skill>();


            BodyParts = GetBaseHumanoidBodyParts(game);

            AnimateFrame      = 0;
            AnimateFrameCount = 4;
        }
Exemplo n.º 8
0
 internal ObjectListControl(RedSkyGame game, GameScreen parentScreen)
     : base(game)
 {
     Game          = game;
     ParentScreen  = parentScreen;
     Items         = new List <object>();
     Selected      = new List <bool>();
     TopItem       = 0;
     NavWidth      = 26;
     ItemsViewable = 0;
     HoverIndex    = -1;
     canUnselect   = false;
     multiSelect   = false;
     Visible       = true;
     Enabled       = true;
     LoadContent();
 }
Exemplo n.º 9
0
 public Character(RedSkyGame game)
     : base(game)
 {
     Name = "Test";
 }
Exemplo n.º 10
0
 public Map(RedSkyGame game)
     : base(game)
 {
 }
Exemplo n.º 11
0
 public Side(RedSkyGame game)
     : base(game)
 {
     GameRef = game;
 }
Exemplo n.º 12
0
 public MapEntity(RedSkyGame game)
     : base(game)
 {
 }
Exemplo n.º 13
0
        internal static World StartNew(RedSkyGame game)
        {
            World World = InitializeNewWorld(game);

            return(World);
        }
Exemplo n.º 14
0
        private static World InitializeNewWorld(RedSkyGame game)
        {
            World World = new World(game);



            Party PlayerParty = new Party(game);

            for (int i = 0; i < 4; i++)
            {
                Character MainCharacter = Character.Initalize <Human>(game);
                MainCharacter.Enabled        = true;
                MainCharacter.SpriteLocation = new Vector2(i, 0);
                MainCharacter.Name           = "Test " + i;
                PlayerParty.Join(MainCharacter);
            }

            PlayerParty.Items = new Dictionary <Item, int>();
            PlayerParty.Items.Add(game.Items["Potion"], 9);
            PlayerParty.Items.Add(game.Items["Pheonix Down"], 177);
            PlayerParty.Items.Add(game.Items["Ether"], 1);
            PlayerParty.Items.Add(game.Items["Mega Potion"], 42);
            PlayerParty.Items.Add(game.Items["Elixer"], 7);
            PlayerParty.Items.Add(game.Items["Remedy"], 10);
            PlayerParty.Items.Add(game.Items["Hi-Potion"], 1);
            PlayerParty.Items.Add(game.Items["Sword"], 3);
            PlayerParty.Items.Add(game.Items["Axe"], 1);
            PlayerParty.Items.Add(game.Items["Fire Item"], 5);
            PlayerParty.Items.Add(game.Items["Shirt"], 2);
            PlayerParty.Items.Add(game.Items["Helmet"], 3);
            PlayerParty.Items.Add(game.Items["Gloves"], 1);

            World.Player = PlayerParty;



            Region MainRegion = new Region(game);

            World.Regions.Add(MainRegion);

            MainRegion.Sites.Add(new Site(game, MainRegion, new Vector2(300, 300)));
            MainRegion.Sites.Add(new Site(game, MainRegion, new Vector2(400, 350)));
            MainRegion.Sites.Add(new Site(game, MainRegion, new Vector2(210, 300)));
            MainRegion.Sites.Add(new Site(game, MainRegion, new Vector2(320, 550)));
            MainRegion.Sites.Add(new Site(game, MainRegion, new Vector2(270, 150)));
            MainRegion.Sites[0].Connections.Add(MainRegion.Sites[1]);
            MainRegion.Sites[0].Connections.Add(MainRegion.Sites[2]);
            MainRegion.Sites[0].Connections.Add(MainRegion.Sites[3]);

            MainRegion.Sites[1].Connections.Add(MainRegion.Sites[3]);
            MainRegion.Sites[2].Connections.Add(MainRegion.Sites[4]);

            foreach (var site in MainRegion.Sites)
            {
                site.Visible = true;
            }

            PlayerParty.Site = MainRegion.Sites[0];

            return(World);
        }
Exemplo n.º 15
0
 public SkillModificationStatus(RedSkyGame game)
     : base(game)
 {
     GameRef = game;
 }
Exemplo n.º 16
0
 public Party(RedSkyGame game)
     : base(game)
 {
 }
Exemplo n.º 17
0
 public Shop(RedSkyGame game)
     : base(game)
 {
     GameRef = game;
 }
Exemplo n.º 18
0
 public Layer(RedSkyGame game)
     : base(game)
 {
 }
Exemplo n.º 19
0
 public Status(RedSkyGame game)
     : base(game)
 {
     GameRef = game;
 }
Exemplo n.º 20
0
 public Region(RedSkyGame game)
     : base(game)
 {
     GameRef = game;
 }
Exemplo n.º 21
0
 public Skill(RedSkyGame game)
     : base(game)
 {
     GameRef = game;
 }
Exemplo n.º 22
0
 internal static Character Initalize <T>(RedSkyGame game) where T : Character
 {
     return((T)Activator.CreateInstance(typeof(T), new object[] { game }));
 }
Exemplo n.º 23
0
 public Tile(RedSkyGame game)
     : base(game)
 {
     GameRef = game;
 }
Exemplo n.º 24
0
 public Item(RedSkyGame game)
     : base(game)
 {
 }
Exemplo n.º 25
0
 public Equipment(RedSkyGame game)
     : base(game)
 {
     Usage   = ItemUse.Wearable;
     Targets = ItemTargets.None;
 }
Exemplo n.º 26
0
        public void Initialize(RedSkyGame game)
        {
            _item = new Item[13];

            List <string> ItemNames = new List <string>()
            {
                "Potion", "Pheonix Down", "Ether", "Mega Potion", "Elixer", "Remedy", "Hi-Potion", "Fire Item"
            };

            for (int i = 0; i < 8; i++)
            {
                _item[i]             = new Item(game);
                _item[i].Name        = ItemNames[i];
                _item[i].Usage       = ItemUse.Usable;
                _item[i].Targets     = ItemTargets.Character;
                _item[i].Description = _item[i].Name + " Description here.";
            }

            _item[3].Targets = ItemTargets.Party;

            _item[7].Usage = ItemUse.BattleUsable;


            Equipment Sword = new Equipment(game);

            Sword.Name         = "Sword";
            Sword.Description  = Sword.Name + " Description here.";
            Sword.HeldBy       = BodyPartType.Hand;
            Sword.Weight       = 1;
            Sword.AttackDamage = 5;
            Sword.Strength     = 3;
            _item[8]           = Sword;

            Equipment Axe = new Equipment(game);

            Axe.Name         = "Axe";
            Axe.Description  = Sword.Name + " Description here.";
            Axe.HeldBy       = BodyPartType.Hand;
            Axe.Weight       = 3;
            Axe.AttackDamage = 10;
            Axe.Strength     = 5;
            _item[9]         = Axe;

            Equipment Gloves = new Equipment(game);

            Gloves.Name           = "Gloves";
            Gloves.Description    = Gloves.Name + " Description here.";
            Gloves.WornOn         = BodyPartType.Hand;
            Gloves.Weight         = 100;
            Gloves.MagicalAbility = 5;
            Gloves.Vitality       = 2;
            _item[10]             = Gloves;

            Equipment Helmet = new Equipment(game);

            Helmet.Name        = "Helmet";
            Helmet.Description = Helmet.Name + " Description here.";
            Helmet.WornOn      = BodyPartType.Head;
            Helmet.Weight      = 4;
            _item[11]          = Helmet;

            Equipment Shirt = new Equipment(game);

            Shirt.Name        = "Shirt";
            Shirt.Description = Shirt.Name + " Description here.";
            Shirt.WornOn      = BodyPartType.Body;
            Shirt.Weight      = 2;
            _item[12]         = Shirt;
        }
Exemplo n.º 27
0
 public World(RedSkyGame game)
     : base(game)
 {
     Game = game;
     LoadContent();
 }
Exemplo n.º 28
0
 public Unit(RedSkyGame game)
     : base(game)
 {
     GameRef = game;
 }
Exemplo n.º 29
0
 public MenuEquipScreen(int width, int height, RedSkyGame game, ScreenHandler manager)
     : base(width, height, game, manager)
 {
 }
Exemplo n.º 30
0
 public Battle(RedSkyGame game)
     : base(game)
 {
     GameRef = game;
 }