Java Video Tutorial 59

PhotonTorpedo Class Diagram

PhotonTorpedo UML Class Diagram

gBWidth : int
gBHeight : int
centerX : double
centerY : double
polyXArray : int[]
polyYArray : int[]
torpedoWidth : int
torpedoHeight : int
onScreen : boolean
movingAngle : double
xVelocity : double
yVelocity : double

PhotonTorpedo(
double shipNoseX, 
double shipNoseY, 
double shipAngle)

getXCenter()
getYCenter()
setXCenter(double)
setYCenter(double)
changeXPos(double)
changeYPos(double)
getXVelocity()
getYVelocity()
setXVelocity(double)
setYVelocity(double)
getWidth()
getHeight()
setMovingAngle(double)
getMovingAngle()
getBounds()
torpedoXMoveAngle(double)
torpedoYMoveAngle(double)
move()

Pages: 1 2 3 4 5 6

2 Responses to “Java Video Tutorial 59”

  1. Anonymous says:

    Amazing work, I had been a little confused on various points in the past two or three lessons, and you managed to answer all of my questions in this lesson. Now it all clicks.

    So given what you said about needing C and C++ for heavy graphics work, for a game developer would you suggest I move that direction after Java and Android development lessons?

    Again, thanks for all of the hard work.

    • Derek Banas says:

      Thank you for the nice compliments 🙂 It all depends on what you want to do. Personally I only use C++ for very intensive simulations I make. I would never try to make a 3D game until I’ve made many good 2D games. Do what makes you happy though.

Leave a Reply

Your email address will not be published.

Google+