public Site(RedSkyGame game, Region region, Vector2 loc) : base(game) { GameRef = game; Region = region; Location = loc; }
public ScreenHandler(RedSkyGame game) : base(game) { GameRef = game; drawOrder = startDrawOrder; Initialize(); }
public GameScreen(int width, int height, RedSkyGame game, ScreenHandler handler) : base(width, height) { screenHandler = handler; Game = game; childComponents = new List <GameComponent>(); }
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); }
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; }
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; }
public Human(RedSkyGame game) : base(game) { InitializeStats(); Statuses = new List <Status>(); Skills = new List <Skill>(); BodyParts = GetBaseHumanoidBodyParts(game); AnimateFrame = 0; AnimateFrameCount = 4; }
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(); }
public Character(RedSkyGame game) : base(game) { Name = "Test"; }
public Map(RedSkyGame game) : base(game) { }
public Side(RedSkyGame game) : base(game) { GameRef = game; }
public MapEntity(RedSkyGame game) : base(game) { }
internal static World StartNew(RedSkyGame game) { World World = InitializeNewWorld(game); return(World); }
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); }
public SkillModificationStatus(RedSkyGame game) : base(game) { GameRef = game; }
public Party(RedSkyGame game) : base(game) { }
public Shop(RedSkyGame game) : base(game) { GameRef = game; }
public Layer(RedSkyGame game) : base(game) { }
public Status(RedSkyGame game) : base(game) { GameRef = game; }
public Region(RedSkyGame game) : base(game) { GameRef = game; }
public Skill(RedSkyGame game) : base(game) { GameRef = game; }
internal static Character Initalize <T>(RedSkyGame game) where T : Character { return((T)Activator.CreateInstance(typeof(T), new object[] { game })); }
public Tile(RedSkyGame game) : base(game) { GameRef = game; }
public Item(RedSkyGame game) : base(game) { }
public Equipment(RedSkyGame game) : base(game) { Usage = ItemUse.Wearable; Targets = ItemTargets.None; }
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; }
public World(RedSkyGame game) : base(game) { Game = game; LoadContent(); }
public Unit(RedSkyGame game) : base(game) { GameRef = game; }
public MenuEquipScreen(int width, int height, RedSkyGame game, ScreenHandler manager) : base(width, height, game, manager) { }
public Battle(RedSkyGame game) : base(game) { GameRef = game; }