void ship::KeyPress() { if (HELP_Keypresses(SDL_SCANCODE_A)) m_x -= 5.0f; if (HELP_Keypresses(SDL_SCANCODE_D)) m_x += 5.0f; if (HELP_Keypresses(SDL_SCANCODE_W)) m_y -= 5.0f; if (HELP_Keypresses(SDL_SCANCODE_S)) m_y += 5.0f; if (HELP_Keypresses(SDL_SCANCODE_Z)) m_width += 10.0f; if (HELP_Keypresses(SDL_SCANCODE_X)) m_width -= 10.0f; if (HELP_Keypresses(SDL_SCANCODE_C)) m_height += 10.0f; if (HELP_Keypresses(SDL_SCANCODE_V)) m_height -= 10.0f; if (HELP_Keypresses(SDL_SCANCODE_0)) Saveship(); if (HELP_Keypresses(SDL_SCANCODE_1)) LoadShip(); }
void Base::LoadDummy(char *shipname) { LoadShip(&dummy,shipname); }