Exemplo n.º 1
0
 public MoveCameraEvent(NPCCodex.NPCTypes enCharacterID, float fSpeed, bool bSlowAtEnd = false, bool bSlowAtStart = false)
 {
     this.xCamera = Program.GetTheGame().xCamera;
     this.fStartMoveSpeed = fSpeed;
     this.fMoveSpeed = fSpeed;
     this.enCharacterID = enCharacterID;
     this.bSlowAtEnd = bSlowAtEnd;
     this.bSlowAtStart = bSlowAtStart;
 }
Exemplo n.º 2
0
 public void CreateNew(EnemyCodex.EnemyTypes enEnemyType)
 {
     if (enEnemyType == EnemyCodex.EnemyTypes.Rabbi)
     {
         this.enNPCType = NPCCodex.NPCTypes.Pet_Rabby;
         this.sName = "Rabby";
     }
     else if (enEnemyType == EnemyCodex.EnemyTypes.GreenSlime)
     {
         this.enNPCType = NPCCodex.NPCTypes.Pet_Slime;
         this.sName = "Slimy";
     }
     else if (enEnemyType == EnemyCodex.EnemyTypes.Pumpkin)
     {
         this.enNPCType = NPCCodex.NPCTypes.Pet_Jumpkin;
         this.sName = "Jumpkin";
     }
     this.xDescription = PetCodex.GetDescription(this.enNPCType);
 }
Exemplo n.º 3
0
		public NPCDescription(NPCCodex.NPCTypes p_enType, string p_sFullName)
		{
			this.enType = p_enType;
			this.sFullName = p_sFullName;
		}
Exemplo n.º 4
0
 public void ReadBasicInfo(NetIncomingMessage br)
 {
     this.enNPCType = (NPCCodex.NPCTypes)br.ReadInt32();
     this.bySkin = br.ReadByte();
     this.xDescription = PetCodex.GetDescription(this.enNPCType);
 }
Exemplo n.º 5
0
 public void ReadFrom(NetIncomingMessage br)
 {
     this.enNPCType = (NPCCodex.NPCTypes)br.ReadInt32();
     this.sName = br.ReadString();
     this.iLevel = (int)br.ReadByte();
     this.bySkin = br.ReadByte();
     this.deniStatLevels[PetInfo.PetBonus.HP] = br.ReadUInt16();
     this.deniStatLevels[PetInfo.PetBonus.SP] = br.ReadUInt16();
     this.deniStatLevels[PetInfo.PetBonus.Damage] = br.ReadUInt16();
     this.deniStatLevels[PetInfo.PetBonus.Crit] = br.ReadUInt16();
     this.deniStatLevels[PetInfo.PetBonus.Speed] = br.ReadUInt16();
     this.xDescription = PetCodex.GetDescription(this.enNPCType);
     this.CalculateBonusValues();
     Program.GetTheGame()._Pet_AddPetBonuses(this);
 }
Exemplo n.º 6
0
 public void ReadFrom(BinaryReader br)
 {
     this.enNPCType = (NPCCodex.NPCTypes)br.ReadInt32();
     this.sName = br.ReadString();
     this.iLevel = (int)br.ReadByte();
     this.bySkin = br.ReadByte();
     this.deniStatLevels[PetInfo.PetBonus.HP] = br.ReadUInt16();
     this.deniStatLevels[PetInfo.PetBonus.SP] = br.ReadUInt16();
     this.deniStatLevels[PetInfo.PetBonus.Damage] = br.ReadUInt16();
     this.deniStatLevels[PetInfo.PetBonus.Crit] = br.ReadUInt16();
     this.deniStatLevels[PetInfo.PetBonus.Speed] = br.ReadUInt16();
     this.deniStatLevelProgress[PetInfo.PetBonus.HP] = br.ReadUInt16();
     this.deniStatLevelProgress[PetInfo.PetBonus.SP] = br.ReadUInt16();
     this.deniStatLevelProgress[PetInfo.PetBonus.Damage] = br.ReadUInt16();
     this.deniStatLevelProgress[PetInfo.PetBonus.Crit] = br.ReadUInt16();
     this.deniStatLevelProgress[PetInfo.PetBonus.Speed] = br.ReadUInt16();
     this.xDescription = PetCodex.GetDescription(this.enNPCType);
     this.CalculateBonusValues();
 }
Exemplo n.º 7
0
		public PetDescription(NPCCodex.NPCTypes enNPCType, EnemyCodex.EnemyTypes enEnemyType)
		{
			this.enNPCType = enNPCType;
			this.enEnemyType = enEnemyType;
		}