Bullets - OxiStudios/OrbMain GitHub Wiki
Intro
This will be the main class that every bullet extends. It will contain some methods that each sub bullet will override so it can be unique. because bullets are instantiated when the player clicks the screen right now, we have to figure out a way to make sure that the correct bullet will be instantiated. This wont be too hard because it will be like the abilities class.
Bullet Class
-
There are two types: Heavy and Light
-
This class will have the method
getIsBullet()
which is passed to the enemy class'sstartContact()
as a string and then tested to see if it can be an int. If it can be an int it is the bullet's damage, if it cannot be converted to an int, it is not a bullet. This is a very key concept behind our bullets. -
Every bullet has a damage level and each sub bullet will override
setDamage()