HANDLING namespace JJ2+

How objects react to players and bullets

Enums

enum Bullet { HURTBYBULLET = 0, IGNOREBULLET = 1, DESTROYBULLET = 2, DETECTBULLET = 3 } JJ2+
How an object reacts when a bullet touches it, see jjOBJ::bulletHandling
enum Player { ENEMY = 0, PLAYERBULLET = 1, ENEMYBULLET = 2, PARTICLE = 3, EXPLOSION = 4, PICKUP = 5, DELAYEDPICKUP = 6 partially supported, HURT = 7, SPECIAL = 8, DYING = 9 partially supported, SPECIALDONE = 10 partially supported, SELFCOLLISION = 11 partially supported } JJ2+
How an object reacts when a player touches it, see jjOBJ::playerHandling

Enum documentation

enum HANDLING::Bullet JJ2+

How an object reacts when a bullet touches it, see jjOBJ::bulletHandling

Enumerators
HURTBYBULLET

The object loses energy, the bullet is usually destroyed

IGNOREBULLET

Neither the object nor the bullet is affected

DESTROYBULLET

The bullet is destroyed, the object is unaffected

DETECTBULLET

The object is unaffected, the bullet is destroyed and onObjectHit() is called if jjOBJ::scriptedCollisions is set

enum HANDLING::Player JJ2+

How an object reacts when a player touches it, see jjOBJ::playerHandling

Enumerators
ENEMY

Hurts the player, unless the player attacks it

PLAYERBULLET

Bullet fired by a player, hits enemies and other players

ENEMYBULLET

Bullet fired by an enemy, hurts players

PARTICLE

Players and bullets go through it

EXPLOSION

No special handling

PICKUP

Collected by the player, with an effect depending on jjOBJ::eventID

DELAYEDPICKUP

A pickup collected only after a short delay

HURT

Hurts the player, attacks don't harm it

SPECIAL

Reacts to players and bullets in a way specific to the object

DYING

No special handling

SPECIALDONE

No special handling

SELFCOLLISION

No special handling