Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // When called, this function should set the m_is_flying bit to true. Function has 2 parameters. One to reference the class object
- // and one to recieve a true or false bool from the function call.
- void markFlying(Entity &e ,bool is_flying)
- {
- e.m_is_flying = is_flying;
- }
- // On jump event, call markFlying function with 2 parameters, ??? what to send for Entity &e and sending true for the is_flying bool
- case UP: // hold to fly (SPACE keybind)
- markFlying(?, true); // Sets player is flying to true
Add Comment
Please, Sign In to add comment