Ejemplo n.º 1
0
        public override void Deserialize(IDataReader reader)
        {
            base.Deserialize(reader);
            teamId = reader.ReadSByte();
            wave   = reader.ReadSByte();
            if (wave < 0)
            {
                throw new Exception("Forbidden value on wave = " + wave + ", it doesn't respect the following condition : wave < 0");
            }
            alive = reader.ReadBoolean();
            stats = Types.ProtocolTypeManager.GetInstance <GameFightMinimalStats>(reader.ReadShort());
            stats.Deserialize(reader);
            var limit = reader.ReadShort();
            var previousPositions_ = new short[limit];

            for (int i = 0; i < limit; i++)
            {
                previousPositions_[i] = reader.ReadVarShort();
                if (previousPositions_[i] > 559)
                {
                    throw new Exception("Forbidden value on previousPositions_[i] = " + previousPositions_[i] + ", it doesn't respect the following condition : previousPositions_[i] > 559");
                }
            }
            previousPositions = previousPositions_;
        }
Ejemplo n.º 2
0
 public GameFightFighterInformations(double contextualId, Types.EntityLook look, EntityDispositionInformations disposition, sbyte teamId, sbyte wave, bool alive, GameFightMinimalStats stats, IEnumerable <short> previousPositions)
     : base(contextualId, look, disposition)
 {
     this.teamId            = teamId;
     this.wave              = wave;
     this.alive             = alive;
     this.stats             = stats;
     this.previousPositions = previousPositions;
 }
Ejemplo n.º 3
0
 public GameFightMutantInformations(double contextualId, Types.EntityLook look, EntityDispositionInformations disposition, sbyte teamId, sbyte wave, bool alive, GameFightMinimalStats stats, IEnumerable <short> previousPositions, string name, Types.PlayerStatus status, sbyte powerLevel)
     : base(contextualId, look, disposition, teamId, wave, alive, stats, previousPositions, name, status)
 {
     this.powerLevel = powerLevel;
 }
Ejemplo n.º 4
0
 public GameFightCompanionInformations(double contextualId, Types.EntityLook look, EntityDispositionInformations disposition, sbyte teamId, sbyte wave, bool alive, GameFightMinimalStats stats, IEnumerable <short> previousPositions, sbyte companionGenericId, sbyte level, double masterId)
     : base(contextualId, look, disposition, teamId, wave, alive, stats, previousPositions)
 {
     this.companionGenericId = companionGenericId;
     this.level    = level;
     this.masterId = masterId;
 }
Ejemplo n.º 5
0
 public GameFightCharacterInformations(double contextualId, Types.EntityLook look, EntityDispositionInformations disposition, sbyte teamId, sbyte wave, bool alive, GameFightMinimalStats stats, IEnumerable <short> previousPositions, string name, Types.PlayerStatus status, sbyte level, Types.ActorAlignmentInformations alignmentInfos, sbyte breed, bool sex)
     : base(contextualId, look, disposition, teamId, wave, alive, stats, previousPositions, name, status)
 {
     this.level          = level;
     this.alignmentInfos = alignmentInfos;
     this.breed          = breed;
     this.sex            = sex;
 }
Ejemplo n.º 6
0
 public GameFightMonsterInformations(double contextualId, Types.EntityLook look, EntityDispositionInformations disposition, sbyte teamId, sbyte wave, bool alive, GameFightMinimalStats stats, IEnumerable <short> previousPositions, short creatureGenericId, sbyte creatureGrade)
     : base(contextualId, look, disposition, teamId, wave, alive, stats, previousPositions)
 {
     this.creatureGenericId = creatureGenericId;
     this.creatureGrade     = creatureGrade;
 }
 public GameFightAIInformations(double contextualId, Types.EntityLook look, EntityDispositionInformations disposition, sbyte teamId, sbyte wave, bool alive, GameFightMinimalStats stats, IEnumerable <short> previousPositions)
     : base(contextualId, look, disposition, teamId, wave, alive, stats, previousPositions)
 {
 }
 public GameFightMonsterWithAlignmentInformations(double contextualId, Types.EntityLook look, EntityDispositionInformations disposition, sbyte teamId, sbyte wave, bool alive, GameFightMinimalStats stats, IEnumerable <short> previousPositions, short creatureGenericId, sbyte creatureGrade, Types.ActorAlignmentInformations alignmentInfos)
     : base(contextualId, look, disposition, teamId, wave, alive, stats, previousPositions, creatureGenericId, creatureGrade)
 {
     this.alignmentInfos = alignmentInfos;
 }
 public GameFightFighterNamedInformations(double contextualId, Types.EntityLook look, EntityDispositionInformations disposition, sbyte teamId, sbyte wave, bool alive, GameFightMinimalStats stats, IEnumerable <short> previousPositions, string name, Types.PlayerStatus status)
     : base(contextualId, look, disposition, teamId, wave, alive, stats, previousPositions)
 {
     this.name   = name;
     this.status = status;
 }
 public GameFightTaxCollectorInformations(double contextualId, Types.EntityLook look, EntityDispositionInformations disposition, sbyte teamId, sbyte wave, bool alive, GameFightMinimalStats stats, IEnumerable <short> previousPositions, short firstNameId, short lastNameId, sbyte level)
     : base(contextualId, look, disposition, teamId, wave, alive, stats, previousPositions)
 {
     this.firstNameId = firstNameId;
     this.lastNameId  = lastNameId;
     this.level       = level;
 }