This site has been archived and made available for preservation purposes. No edits can be made.

Limb

[top]Definition

Code cpp:
enum VAULTCPP(class) Limb VAULTCPP(: uint16_t)
{
	VAULTCPP(None)VAULTC(None_) = 0x0000,
	VAULTCPP(Torso)VAULTC(Torso_) = 0x0001,
	Head1 = VAULTCPP(Torso)VAULTC(Torso_) << 1,
	Head2 = Head1 << 1,
	LeftArm1 = Head2 << 1,
	LeftArm2 = LeftArm1 << 1,
	RightArm1 = LeftArm2 << 1,
	RightArm2 = RightArm1 << 1,
	LeftLeg1 = RightArm2 << 1,
	LeftLeg2 = LeftLeg1 << 1,
	LeftLeg3 = LeftLeg2 << 1,
	RightLeg1 = LeftLeg3 << 1,
	RightLeg2 = RightLeg1 << 1,
	RightLeg3 = RightLeg2 << 1,
	VAULTCPP(Brain)VAULTC(Brain_) = RightLeg3 << 1,
	Weapon = VAULTCPP(Brain)VAULTC(Brain_) << 1,
 
	TORSO = (VAULTCPP(Torso)VAULTC(Torso_)),
	HEAD = (Head1 | Head2),
	LEFT_ARM = (LeftArm1 | LeftArm2),
	RIGHT_ARM = (RightArm1 | RightArm2),
	LEFT_LEG = (LeftLeg1 | LeftLeg2 | LeftLeg3),
	RIGHT_LEG = (RightLeg1 | RightLeg2 | RightLeg3),
	BRAIN = (VAULTCPP(Brain)VAULTC(Brain_)),
	WEAPON = (Weapon),
 
	ALL_LIMBS = (TORSO | HEAD | LEFT_ARM | RIGHT_ARM | LEFT_LEG | RIGHT_LEG | BRAIN | WEAPON),
};
Code c:
typedef uint16_t Limb;
Code c:
const Limb: {
	None_ =	0x0000,
	Torso_ = 0x0001,
	Head1 =	Torso_ << Torso_,
	Head2 =	Head1 << Torso_,
	LeftArm1 = Head2 << Torso_,
	LeftArm2 = LeftArm1 << Torso_,
	RightArm1 = LeftArm2 << Torso_,
	RightArm2 = RightArm1 << Torso_,
	LeftLeg1 =  RightArm2 << Torso_,
	LeftLeg2 = LeftLeg1 << Torso_,
	LeftLeg3 = LeftLeg2 << Torso_,
	RightLeg1 = LeftLeg3 << Torso_,
	RightLeg2 = RightLeg1 << Torso_,
	RightLeg3 = RightLeg2 << Torso_,
	Brain_ = RightLeg3 << Torso_,
	Weapon = Brain_ << Torso_,
 
	TORSO =	(Torso_),
	HEAD =	(Head1 | Head2),
	LEFT_ARM = (LeftArm1 | LeftArm2),
	RIGHT_ARM = (RightArm1 | RightArm2),
	LEFT_LEG = (LeftLeg1 | LeftLeg2 | LeftLeg3),
	RIGHT_LEG = (RightLeg1 | RightLeg2 | RightLeg3),
	BRAIN = (Brain_),
	WEAPON = (Weapon),
 
	ALL_LIMBS = (TORSO | HEAD | LEFT_ARM | RIGHT_ARM | LEFT_LEG | RIGHT_LEG | BRAIN | WEAPON),
}