/* This file is part of Invaders. * * Copyright (C) 2020 LCM. * You may use, distribute and modify Invaders under the terms of the * GPLv3 license, available at . */ #include "bullet.hpp" void bullet::next_pos() { switch(id){ case 2: y--; break; case 8: case 64: case 128: case 512: y++; break; } }