Guest User

Untitled

a guest
Apr 26th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. // When called, this function should set the m_is_flying bit to true. Function has 2 parameters. One to reference the class object
  2. // and one to recieve a true or false bool from the function call.
  3.  
  4. void markFlying(Entity &e ,bool is_flying)
  5. {
  6.  
  7. e.m_is_flying = is_flying;
  8.  
  9. }
  10.  
  11. // On jump event, call markFlying function with 2 parameters, ??? what to send for Entity &e and sending true for the is_flying bool
  12.  
  13. case UP: // hold to fly (SPACE keybind)
  14.  
  15. markFlying(?, true); // Sets player is flying to true
Add Comment
Please, Sign In to add comment