Class SinusCoss
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--java.awt.Window
|
+--java.awt.Frame
|
+--javax.swing.JFrame
|
+--SinusCoss
- All Implemented Interfaces:
- javax.accessibility.Accessible, java.awt.event.ActionListener, java.util.EventListener, java.awt.image.ImageObserver, java.awt.event.KeyListener, java.awt.MenuContainer, java.awt.event.MouseListener, javax.swing.RootPaneContainer, java.lang.Runnable, java.io.Serializable, javax.swing.WindowConstants, java.awt.event.WindowListener
- public class SinusCoss
- extends javax.swing.JFrame
- implements java.lang.Runnable, java.awt.event.KeyListener, java.awt.event.MouseListener, java.awt.event.ActionListener, java.awt.event.WindowListener
- See Also:
- Serialized Form
Inner classes inherited from class javax.swing.JFrame |
javax.swing.JFrame.AccessibleJFrame |
Inner classes inherited from class java.awt.Frame |
java.awt.Frame.AccessibleAWTFrame |
Inner classes inherited from class java.awt.Window |
java.awt.Window.AccessibleAWTWindow |
Inner classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
Inner classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent |
Fields inherited from class javax.swing.JFrame |
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled |
Fields inherited from class java.awt.Frame |
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface javax.swing.WindowConstants |
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Methods inherited from class javax.swing.JFrame |
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isRootPaneCheckingEnabled, paramString, processKeyEvent, processWindowEvent, remove, setContentPane, setDefaultCloseOperation, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled |
Methods inherited from class java.awt.Frame |
addNotify, finalize, getCursorType, getFrames, getIconImage, getMenuBar, getState, getTitle, isResizable, remove, removeNotify, setCursor, setIconImage, setMenuBar, setResizable, setState, setTitle |
Methods inherited from class java.awt.Window |
addWindowListener, applyResourceBundle, applyResourceBundle, dispose, getFocusOwner, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getOwnedWindows, getOwner, getToolkit, getWarningString, hide, isShowing, pack, postEvent, processEvent, removeWindowListener, setCursor, show, toBack, toFront |
Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getInsets, getLayout, getMaximumSize, getMinimumSize, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setFont, validate, validateTree |
Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getInputMethodRequests, getLocation, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseMotionEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setDropTarget, setEnabled, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, size, toString, transferFocus |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.awt.MenuContainer |
getFont, postEvent |
killme
protected java.lang.Thread killme
objs
protected fx2DObj[] objs
counter
protected int counter
max_objs
protected int max_objs
threadSuspended
protected boolean threadSuspended
first_draw
protected boolean first_draw
FramesPerSec
protected double FramesPerSec
shields
protected int shields
sx
protected int sx
sy
protected int sy
LastShipMove
protected long LastShipMove
shipSpeed
protected double shipSpeed
shipDeltaSpeed
protected double shipDeltaSpeed
shoot_X
protected int[] shoot_X
shoot_Y
protected int[] shoot_Y
shoots
protected int shoots
points
protected int points
condition
protected int condition
shoot
protected boolean[] shoot
LastShootMove
protected long[] LastShootMove
LastShoot
protected long LastShoot
ShootLoaded
protected boolean ShootLoaded
shootSpeed
protected double shootSpeed
gameOn
protected boolean gameOn
shieldTimer
protected SimpleTimer shieldTimer
shieldPause
protected boolean shieldPause
ScrollText
protected java.lang.String ScrollText
FinalText
protected final java.lang.String FinalText
DoTextScroll
protected boolean DoTextScroll
textDrawed
protected boolean textDrawed
textSpeed
protected double textSpeed
tx
protected int tx
ty
protected int ty
texth
protected int texth
td
protected int td
LastScrolledText
protected long LastScrolledText
textf
protected java.awt.Font textf
setup_window
protected JSetupWindow setup_window
cfgMgr
protected ComponentMgr cfgMgr
cfgMgrGlob
protected ComponentMgr cfgMgrGlob
keyleft
protected char keyleft
keyright
protected char keyright
keyfire
protected char keyfire
keySetup
protected char keySetup
keyQuit
protected char keyQuit
mouseaction
protected boolean mouseaction
doSound
protected boolean doSound
useJauBrowser
protected boolean useJauBrowser
animate
protected boolean animate
scoreButton
protected javax.swing.JTextField scoreButton
shieldButton
protected javax.swing.JTextField shieldButton
fpsButton
protected javax.swing.JTextField fpsButton
scoreDisplay
protected javax.swing.JPanel scoreDisplay
gameDisplay
protected ImageJPanel gameDisplay
fps_count
protected long fps_count
fps_start
protected long fps_start
jmb
protected javax.swing.JMenuBar jmb
applet
protected javax.swing.JApplet applet
resource
public static Resources resource
SinusCoss
public SinusCoss()
main
public static void main(java.lang.String[] args)
setJApplet
public void setJApplet(javax.swing.JApplet ja)
getJApplet
public javax.swing.JApplet getJApplet(javax.swing.JApplet ja)
init
public void init(javax.swing.JApplet ja)
getPreferredSize
public java.awt.Dimension getPreferredSize()
- Overrides:
getPreferredSize
in class java.awt.Container
start
public void start()
stop
public void stop()
destroy
public void destroy()
resetVal
public void resetVal()
run
public void run()
- Specified by:
run
in interface java.lang.Runnable
update
public void update(java.awt.Graphics g)
- Overrides:
update
in class javax.swing.JFrame
render
public void render(java.awt.Graphics g)
render_g
public void render_g(java.awt.Graphics g)
resumeAnimation
public void resumeAnimation()
suspendAnimation
public void suspendAnimation()
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent event)
- Specified by:
actionPerformed
in interface java.awt.event.ActionListener
keyTyped
public void keyTyped(java.awt.event.KeyEvent e)
- Specified by:
keyTyped
in interface java.awt.event.KeyListener
keyPressed
public void keyPressed(java.awt.event.KeyEvent e)
- Specified by:
keyPressed
in interface java.awt.event.KeyListener
keyReleased
public void keyReleased(java.awt.event.KeyEvent e)
- Specified by:
keyReleased
in interface java.awt.event.KeyListener
mouseReleased
public void mouseReleased(java.awt.event.MouseEvent e)
- Specified by:
mouseReleased
in interface java.awt.event.MouseListener
mousePressed
public void mousePressed(java.awt.event.MouseEvent e)
- Specified by:
mousePressed
in interface java.awt.event.MouseListener
mouseClicked
public void mouseClicked(java.awt.event.MouseEvent e)
- Specified by:
mouseClicked
in interface java.awt.event.MouseListener
mouseExited
public void mouseExited(java.awt.event.MouseEvent e)
- Specified by:
mouseExited
in interface java.awt.event.MouseListener
mouseEntered
public void mouseEntered(java.awt.event.MouseEvent e)
- Specified by:
mouseEntered
in interface java.awt.event.MouseListener
windowOpened
public void windowOpened(java.awt.event.WindowEvent e)
- Specified by:
windowOpened
in interface java.awt.event.WindowListener
windowClosing
public void windowClosing(java.awt.event.WindowEvent e)
- Specified by:
windowClosing
in interface java.awt.event.WindowListener
windowClosed
public void windowClosed(java.awt.event.WindowEvent e)
- Specified by:
windowClosed
in interface java.awt.event.WindowListener
windowIconified
public void windowIconified(java.awt.event.WindowEvent e)
- Specified by:
windowIconified
in interface java.awt.event.WindowListener
windowDeiconified
public void windowDeiconified(java.awt.event.WindowEvent e)
- Specified by:
windowDeiconified
in interface java.awt.event.WindowListener
windowActivated
public void windowActivated(java.awt.event.WindowEvent e)
- Specified by:
windowActivated
in interface java.awt.event.WindowListener
windowDeactivated
public void windowDeactivated(java.awt.event.WindowEvent e)
- Specified by:
windowDeactivated
in interface java.awt.event.WindowListener
UpdateStatus
protected void UpdateStatus()
fillUpWithMySweetys
protected void fillUpWithMySweetys()
drawShip
protected void drawShip(java.awt.Graphics g)
drawShoot
protected void drawShoot(java.awt.Graphics g,
int id)
resetGame
protected void resetGame()
tickShip
protected void tickShip()
tickShoot
protected void tickShoot(int id)
tickText
protected void tickText()
resetText
protected void resetText()
checkShootsAndHits
protected void checkShootsAndHits(java.awt.Graphics g)