I used to code in Pawn years ago but now I am working with other languages. This is a piece of code that allowed me to create 3d arrays with enum.
enum healthHack
{
Float:acHealth,
bool:hImmune,
bool:aImmune,
Float:acArmour,
hcTimer,
pTick,
bool:afkImmune,
bool:hasSpawned
};
new hcInfo[MAX_PLAYERS][healthHack];
Assuming the player_id is 5, MAX_PLAYERS is 500 and while accessing it, I would be able to do it like,
hcInfo[player_id][hasSpawned] = false;
hcInfo[player_id][acHealth] = 100;
I was wondering if Java has a similar approach to 3d arrays like this?