|
|
@ -52,26 +52,30 @@ public:
|
|
|
|
Kami = 0;
|
|
|
|
Kami = 0;
|
|
|
|
Karavan = 0;
|
|
|
|
Karavan = 0;
|
|
|
|
Neutral = 0;
|
|
|
|
Neutral = 0;
|
|
|
|
|
|
|
|
Marauder = 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void setKami(sint32 t) { Kami = t; }
|
|
|
|
void setKami(sint32 t) { Kami = t; }
|
|
|
|
void setKaravan(sint32 t) { Karavan = t; }
|
|
|
|
void setKaravan(sint32 t) { Karavan = t; }
|
|
|
|
void setNeutral(sint32 t) { Neutral = t; }
|
|
|
|
void setNeutral(sint32 t) { Neutral = t; }
|
|
|
|
|
|
|
|
void setMarauder(sint32 t) { Marauder = t; }
|
|
|
|
|
|
|
|
|
|
|
|
sint32 getKami() const { return Kami; }
|
|
|
|
sint32 getKami() const { return Kami; }
|
|
|
|
sint32 getKaravan() const { return Karavan; }
|
|
|
|
sint32 getKaravan() const { return Karavan; }
|
|
|
|
sint32 getNeutral() const { return Neutral; }
|
|
|
|
sint32 getNeutral() const { return Neutral; }
|
|
|
|
|
|
|
|
sint32 getMarauder() const { return Marauder; }
|
|
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
private:
|
|
|
|
sint32 Kami;
|
|
|
|
sint32 Kami;
|
|
|
|
sint32 Karavan;
|
|
|
|
sint32 Karavan;
|
|
|
|
sint32 Neutral;
|
|
|
|
sint32 Neutral;
|
|
|
|
|
|
|
|
sint32 Marauder;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
class CTribeCultThresholdPerCiv
|
|
|
|
class CTribeCultThresholdPerCiv
|
|
|
|
{
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
public:
|
|
|
|
bool getCultThresholdForCiv( PVP_CLAN::TPVPClan civ, sint32& kami, sint32& karavan, sint32& neutral) const
|
|
|
|
bool getCultThresholdForCiv( PVP_CLAN::TPVPClan civ, sint32& kami, sint32& karavan, sint32& neutral, sint32& marauder) const
|
|
|
|
{
|
|
|
|
{
|
|
|
|
const CTribeCultThreshold * tc = 0;
|
|
|
|
const CTribeCultThreshold * tc = 0;
|
|
|
|
switch( civ )
|
|
|
|
switch( civ )
|
|
|
@ -88,12 +92,16 @@ public:
|
|
|
|
case PVP_CLAN::Neutral:
|
|
|
|
case PVP_CLAN::Neutral:
|
|
|
|
tc = &Neutral;
|
|
|
|
tc = &Neutral;
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case PVP_CLAN::Marauder:
|
|
|
|
|
|
|
|
tc = &Marauder;
|
|
|
|
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
default:
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
kami = tc->getKami();
|
|
|
|
kami = tc->getKami();
|
|
|
|
karavan = tc->getKaravan();
|
|
|
|
karavan = tc->getKaravan();
|
|
|
|
neutral = tc->getNeutral();
|
|
|
|
neutral = tc->getNeutral();
|
|
|
|
|
|
|
|
marauder = tc->getMarauder();
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -103,6 +111,7 @@ public:
|
|
|
|
CTribeCultThreshold Tryker;
|
|
|
|
CTribeCultThreshold Tryker;
|
|
|
|
CTribeCultThreshold Zorai;
|
|
|
|
CTribeCultThreshold Zorai;
|
|
|
|
CTribeCultThreshold Neutral;
|
|
|
|
CTribeCultThreshold Neutral;
|
|
|
|
|
|
|
|
CTribeCultThreshold Marauder;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
// declare scoped constant value
|
|
|
|
// declare scoped constant value
|
|
|
|