public HumanView(PlayerInfo playerInfo, CharacterInfo selectedCharacter, ContentManager contentLoader) : base(playerInfo, selectedCharacter) { mContentLoader = contentLoader; mPlayerInputMap = null; DrawSegment = null; }
public InventoryPanel(CharacterInfo AvatarDesc) { Title = "Inventory"; mCharacter = AvatarDesc; mCharacter.EquipmentChanged += InventoryChangedHandler; mCharacter.InventoryChanged += InventoryChangedHandler; }
public BipedSkillPalette(Actor owner) : base(owner) { Skills = new ISkill[EquipSlot.NUM_SKILL_SLOTS]; for (int s = 0; s < EquipSlot.NUM_SKILL_SLOTS; ++s) { Skills[s] = null; } mCharacterInfo = null; mContentLoader = null; }
public void Customize(CharacterInfo customizations, ContentManager contentLoader) { mCharacterInfo = customizations; mContentLoader = contentLoader; for (int q = EquipSlot.SKILL1; q < EquipSlot.NUM_SKILL_SLOTS; ++q) { if (mCharacterInfo.EquippedInventory[q] != null) { LoadSkill(q); } } mCharacterInfo.EquipmentChanged += CharacterUpdatedHandler; }
private static CharacterInfo CreateDefaultCharacter() { CharacterInfo newChar = new CharacterInfo(); newChar.TemplateName = "Vanquisher"; newChar.ObtainItem(new EquippableItem("MachineGun", EquippableItem.SlotCategory.Skill, "MachineGun")); newChar.ObtainItem(new EquippableItem("BoostSkill", EquippableItem.SlotCategory.Skill, "Booster")); newChar.ObtainItem(new EquippableItem("BlasterRifle", EquippableItem.SlotCategory.Skill, "Blaster")); newChar.ObtainItem(new EquippableItem("RocketLauncher", EquippableItem.SlotCategory.Skill, "Rockets")); newChar.ObtainItem(new Item("Gadget")); newChar.ObtainItem(new Item("Widget")); newChar.ObtainItem(new Item("PowerCell")); newChar.Equip(0, EquipSlot.SKILL1); newChar.Equip(0, EquipSlot.SKILL2); newChar.Equip(0, EquipSlot.SKILL3); newChar.Equip(0, EquipSlot.SKILL4); return newChar; }
public ActionScreenHumanView(PlayerInfo playerInfo, CharacterInfo selectedCharacter, ContentManager contentLoader) : base(playerInfo, selectedCharacter, contentLoader) { mMmoCameraDesc = new MmoCameraDesc(); mCamera = new StaticCamera(); mShadowViewMode = false; mBright = 0.1f; mContrast = 1.0f; mBrightParam = null; mContrastParam = null; mAvatarBepuEntity = null; mCameraSmoothingEngaged = false; mAimingCameraOffset = new Vector3(5.0f, 3.0f, 5.0f); mInputProcs = new Dictionary<Type, InputProcessor>[(int)(InputMode.COUNT)]; mInputProcs[(int)(InputMode.Aloof)] = new Dictionary<Type, InputProcessor>(); mInputProcs[(int)(InputMode.Aiming)] = new Dictionary<Type, InputProcessor>(); mCrosshairs = null; mInventoryPanel = null; }
public static PlayerView Create(PlayerInfo playerInfo, CharacterInfo selectedCharacter, IScreenHoncho screenHoncho, ContentManager viewContentLoader) { Type viewType = null; object[] ctorParams = null; switch (playerInfo.Type) { case PlayerInfo.PlayerType.Local: viewType = screenHoncho.HumanViewType; ctorParams = new object[] { playerInfo, selectedCharacter, viewContentLoader }; break; case PlayerInfo.PlayerType.Remote: viewType = screenHoncho.RemoteViewType; ctorParams = new object[] { playerInfo, selectedCharacter }; break; case PlayerInfo.PlayerType.Bot: viewType = screenHoncho.BotViewType; ctorParams = new object[] { playerInfo, selectedCharacter }; break; } return Activator.CreateInstance(viewType, ctorParams) as PlayerView; }
public HubScreenHumanView(PlayerInfo playerInfo, CharacterInfo selectedCharacter, ContentManager contentLoader) : base(playerInfo, selectedCharacter, contentLoader) { mInputProcs = new Dictionary<Type, InputProcessor>(); }