test code for gameapi,
add timeEvent functions to classes