l2-unlegits/l2packets/l2world/L2ElementalInfo.cpp
2012-02-01 05:25:08 +00:00

40 lines
967 B
C++

#include "stdafx.h"
#include "L2ElementalInfo.h"
L2ElementalInfo::L2ElementalInfo()
{
clear();
}
L2ElementalInfo::L2ElementalInfo( const L2ElementalInfo& other )
{
clear();
this->operator=( other );
}
const L2ElementalInfo& L2ElementalInfo::operator=( const L2ElementalInfo& other )
{
if( this == &other ) return (*this);
attackElementType = other.attackElementType;
attackElementValue = other.attackElementValue;
defAttrFire = other.defAttrFire;
defAttrWater = other.defAttrWater;
defAttrWind = other.defAttrWind;
defAttrEarth = other.defAttrEarth;
defAttrHoly = other.defAttrHoly;
defAttrUnholy = other.defAttrUnholy;
return (*this);
}
void L2ElementalInfo::clear()
{
attackElementType = 0;
attackElementValue = 0;
defAttrFire = 0;
defAttrWater = 0;
defAttrWind = 0;
defAttrEarth = 0;
defAttrHoly = 0;
defAttrUnholy = 0;
}