コード例 #1
0
ファイル: Buff.cs プロジェクト: incredible1111/IntWarsSharp
 public Buff(string buffName, float dur, BuffType type, Unit u) //no attacker specified = selfbuff, attacker aka source is same as attachedto
 {
     this.duration    = dur;
     this.name        = buffName;
     this.timeElapsed = 0;
     this.remove      = false;
     this.attachedTo  = u;
     this.attacker    = u;
     this.buffType    = type;
     this.movementSpeedPercentModifier = 0.0f;
     PacketNotifier.notifyAddBuff(u, attacker, buffName);
 }
コード例 #2
0
ファイル: Buff.cs プロジェクト: incredible1111/IntWarsSharp
 public Buff(string buffName, float dur, BuffType type, Unit u, Unit attacker)
 {
     this.duration    = dur;
     this.name        = buffName;
     this.timeElapsed = 0;
     this.remove      = false;
     this.attachedTo  = u;
     this.attacker    = attacker;
     this.buffType    = type;
     this.movementSpeedPercentModifier = 0.0f;
     PacketNotifier.notifyAddBuff(u, attacker, buffName);
 }