#include <src/Ext/WeaponType/Body.h>
List of all members.
Member Typedef Documentation
Member Function Documentation
static char WeaponTypeExt::AbsIDtoIdx |
( |
eAbstractType |
absId | ) |
[inline, static] |
bool WeaponTypeExt::ModifyWaveColor |
( |
WORD * |
src, |
|
|
WORD * |
dst, |
|
|
int |
Intensity, |
|
|
WaveClass * |
Wave |
|
) |
| [static] |
{
WeaponTypeExt::ExtData *pData = WeaponTypeExt::WaveExt[Wave];
ColorStruct *CurrentColor = (pData->Wave_IsHouseColor && Wave->Owner)
? &Wave->Owner->Owner->Color
: &pData->Wave_Color;
if(*CurrentColor == ColorStruct(0, 0, 0)) {
return false;
}
ColorStruct initial = Drawing::WordColor(*src);
ColorStruct modified = initial;
#define upcolor(c) \
int _ ## c = initial. c + (Intensity * CurrentColor-> c ) / 256; \
_ ## c = std::min(_ ## c, 255); \
modified. c = (BYTE)_ ## c;
upcolor(R);
upcolor(G);
upcolor(B);
WORD color = Drawing::Color16bit(&modified);
*dst = color;
return true;
}
Member Data Documentation
The documentation for this class was generated from the following files: