Don’t worry about it, I’m here if you need any help and I can send some examples if you need it 
About the flying and non flying classes:
We will encode this class data for example in ones and zeros.
The first 1 is flying (so all odd numbered classes mean flying) all even numbered not flying. SO class 1, 3, 5, 7, 9, … should all be flying and 2, 4, 6, 8, 10 should be non flying
class 1 and 2 should both have the same energy regeneration modifier aka 0. And the higher the number is in pairs of two the higher this number becomes. As we have 127 possible pairs of two (flying and non flying) we have 253 and 254 both being 100 energy per second.
you can also use this to give energy on demand. Like you know their energy is maximum 100, you know the cost of actions. You then give on certain other actions a class change to give 20 energy for example. So assume for ease of calculation. We implemented this system with 1, 2 = 0e/sec; 3, 4 = 1e/sec … so each pair up grants +1 energy per sec then on pair 20 (21, 22) we have given the player +20 energy. Then after 1 sec we go back to the class 1 or 2 (-20 class id) to keep the flying bit the same but not increment the energy score any more.
How to look at bits
Bits are the smallest piece of information written in base 2. Meaning that we have the numbers, 0 and 1. Every time we add a 0 on the right we multiply by 2 instead of by 10 (in base 10). It works exactly the same as everyday numbers with the exception of using smaller bits. But what makes this so unique is that we can look at such a string of numbers as on and off switches. As if a certain permission or ability is present or not.
So, if you want to check for flying you do:
Class ID - floor(Class ID / 2) * 2
Note: floor stands for the mathematical concept of rounding down. so if we have a number of the form: x1 base 2 divide this by 10 base 2 (so divide by 2): then we get x,1. Now round this number down so we get x.
Now write x1 as x0 + 1. Now remove the floored answer from this we get x0 + 1 - 10 * x = 1.
So we get the 1 back. Meaning this class belonged to the flying group. If the 1 was a 0 (only other options) it would have been 0. As the 1 can be substituted by any other variable for ease of speaking.
To generate the class ID all you need to do is: round(2 * 126 / 100 * Energy Regen Speed (Number between 0 and 100)) + Can Fly (1 if can fly, 0 if not) + 1 (this number is edited in because the range is 1 to 254 and not 0 to 254)
In case you want some code examples let me know, I also hope this answers your question a bit more.
Kind regards,
Madelyn
Edit: fixed a small typo in x =/= x0