Exemple #1
0
 public GameFightFighterInformations(double contextualId, Types.EntityLook look, EntityDispositionInformations disposition, sbyte teamId, sbyte wave, bool alive, GameFightMinimalStats stats, ushort[] previousPositions)
     : base(contextualId, look, disposition)
 {
     this.teamId            = teamId;
     this.wave              = wave;
     this.alive             = alive;
     this.stats             = stats;
     this.previousPositions = previousPositions;
 }
 public GameFightFighterNamedInformations(double contextualId,
                                          EntityLook look,
                                          EntityDispositionInformations disposition,
                                          sbyte teamId,
                                          sbyte wave,
                                          bool alive,
                                          GameFightMinimalStats stats,
                                          ushort[] previousPositions,
                                          string name,
                                          PlayerStatus status)
     : base(contextualId, look, disposition, teamId, wave, alive, stats, previousPositions)
 {
     this.name   = name;
     this.status = status;
 }
 public GameFightMutantInformations(double contextualId,
                                    EntityLook look,
                                    EntityDispositionInformations disposition,
                                    sbyte teamId,
                                    sbyte wave,
                                    bool alive,
                                    GameFightMinimalStats stats,
                                    ushort[] previousPositions,
                                    string name,
                                    PlayerStatus status,
                                    sbyte powerLevel)
     : base(contextualId, look, disposition, teamId, wave, alive, stats, previousPositions, name, status)
 {
     this.powerLevel = powerLevel;
 }
Exemple #4
0
 public GameFightMonsterWithAlignmentInformations(double contextualId,
                                                  EntityLook look,
                                                  EntityDispositionInformations disposition,
                                                  sbyte teamId,
                                                  sbyte wave,
                                                  bool alive,
                                                  GameFightMinimalStats stats,
                                                  ushort[] previousPositions,
                                                  ushort creatureGenericId,
                                                  sbyte creatureGrade,
                                                  ActorAlignmentInformations alignmentInfos)
     : base(contextualId, look, disposition, teamId, wave, alive, stats, previousPositions, creatureGenericId, creatureGrade)
 {
     this.alignmentInfos = alignmentInfos;
 }
Exemple #5
0
 public GameFightMonsterInformations(double contextualId,
                                     EntityLook look,
                                     EntityDispositionInformations disposition,
                                     sbyte teamId,
                                     sbyte wave,
                                     bool alive,
                                     GameFightMinimalStats stats,
                                     ushort[] previousPositions,
                                     ushort creatureGenericId,
                                     sbyte creatureGrade)
     : base(contextualId, look, disposition, teamId, wave, alive, stats, previousPositions)
 {
     this.creatureGenericId = creatureGenericId;
     this.creatureGrade     = creatureGrade;
 }
Exemple #6
0
 public GameFightTaxCollectorInformations(double contextualId,
                                          EntityLook look,
                                          EntityDispositionInformations disposition,
                                          sbyte teamId,
                                          sbyte wave,
                                          bool alive,
                                          GameFightMinimalStats stats,
                                          ushort[] previousPositions,
                                          ushort firstNameId,
                                          ushort lastNameId,
                                          byte level)
     : base(contextualId, look, disposition, teamId, wave, alive, stats, previousPositions)
 {
     this.firstNameId = firstNameId;
     this.lastNameId  = lastNameId;
     this.level       = level;
 }
 public GameFightCompanionInformations(double contextualId,
                                       EntityLook look,
                                       EntityDispositionInformations disposition,
                                       sbyte teamId,
                                       sbyte wave,
                                       bool alive,
                                       GameFightMinimalStats stats,
                                       ushort[] previousPositions,
                                       sbyte companionGenericId,
                                       byte level,
                                       double masterId)
     : base(contextualId, look, disposition, teamId, wave, alive, stats, previousPositions)
 {
     this.companionGenericId = companionGenericId;
     this.level    = level;
     this.masterId = masterId;
 }
Exemple #8
0
 public GameFightCharacterInformations(double contextualId,
                                       EntityLook look,
                                       EntityDispositionInformations disposition,
                                       sbyte teamId,
                                       sbyte wave,
                                       bool alive,
                                       GameFightMinimalStats stats,
                                       ushort[] previousPositions,
                                       string name,
                                       PlayerStatus status,
                                       byte level,
                                       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;
 }
Exemple #9
0
        public override void Deserialize(ICustomDataInput reader)
        {
            base.Deserialize(reader);
            teamId = reader.ReadSByte();
            if (teamId < 0)
            {
                throw new Exception("Forbidden value on teamId = " + teamId + ", it doesn't respect the following condition : teamId < 0");
            }
            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.ReadUShort();

            previousPositions = new ushort[limit];
            for (int i = 0; i < limit; i++)
            {
                previousPositions[i] = reader.ReadVarUhShort();
            }
        }
 public GameFightAIInformations(double contextualId, Types.EntityLook look, EntityDispositionInformations disposition, sbyte teamId, sbyte wave, bool alive, GameFightMinimalStats stats, ushort[] previousPositions)
     : base(contextualId, look, disposition, teamId, wave, alive, stats, previousPositions)
 {
 }