NetDragons AMZN Stock Chart | Free Stock Charts
Games | Free Web Hosting | DVD | Books | Shop | Posters
Google
Name
Password
Save Password?



[-]NetDragons.com
[-]Games
 | [-]24 Hour Games
 |  | [-]Nelzan
 |  |  | [+]Capital Ships
 |  |  | [+]Light Fighters
 |  |  | [+]Medium Fighters
 |  |  | [+]Play It Now!
 |  |  | [+]Player
 |  |  | [+]Forum
 |  |  | [-]Source Code
 |  | [+]Space Frag I
 |  | [+]GNet Server
 |  | [+]About
 |  | [+]Forum
 |  | [+]License
 | [+]Cards of Tridala
 | [+]Flash Games
 | [+]Vagabond's Quest+
 | [+]Vagabond's Quest v.2
 | [+]Projects
[+]NetDragons.com Live!
[+]Reward Center
[+]Software Center
[+]Company Information
[+]Personal Services
[+]Member Directory
[+]Free E-mail
[+]Buy Cool Stuff
[+]Posters
[+]Your Privacy

Class StoryLine


[ Source | Index | Back to Nelzan ]

public class StoryLine
extends Object
StoryLine - Downloads and displays Information dealing with a plot line.

This Class simple makes a request for a file from the weapon, downloads it and stores the information to be displayed.


Variable Index

 o comp
Intance of Applet, for call backs.
 o count
 o data
Information to be displayed.
 o dataFile
 o font
Font to be Used.
 o length
 o subCount
 o type
Type of Information the line is.

Constructor Index

 o StoryLine(int, Applet)
Creates and new instance of the class and downloads the correct file.

Method Index

 o buildNew(int)
Creates new arrays of the correct length so we can store Information.
 o canContinue()
Determins if the player can hit any key to continue.
 o getFile(int)
Gets a file from the web and stores the information in arrays.
 o paint(Graphics)
Paints the story line information.
 o toInt(String)
Converts a String to an int;
 o update()
Updates the length of the messages.

Variables

 o type
 private int type[]
Type of Information the line is.

 o data
 private String data[]
Information to be displayed.

 o font
 private Font font
Font to be Used.

 o comp
 private Applet comp
Intance of Applet, for call backs.

 o count
 private int count
 o subCount
 private int subCount
 o length
 private int length
 o dataFile
 private URL dataFile

Constructors

 o StoryLine
 StoryLine(int level,
           Applet c)
Creates and new instance of the class and downloads the correct file.

Parameters:
level - Player's Current level.
c - Instance of an Applet, for call backs.

Methods

 o update
 public void update()
Updates the length of the messages. It's best for it to look like the message is being download one line at a time.

 o canContinue
 public boolean canContinue()
Determins if the player can hit any key to continue.

Returns:
true if the number of lines being display is equal to the total number of lines, false otherwise.
 o paint
 public void paint(Graphics g)
Paints the story line information.

Parameters:
g - Graphics to paint to.
 o getFile
 private void getFile(int i)
Gets a file from the web and stores the information in arrays.

Parameters:
i - Level to download.
 o buildNew
 private void buildNew(int i)
Creates new arrays of the correct length so we can store Information.

Parameters:
i - Length required.
 o toInt
 private int toInt(String s)
Converts a String to an int;

Parameters:
s - The String to be converted
Returns:
an int value from s
ND: VQ+, Mail, Shop, Free Web Hosting Baseball Posters

Free Stock Charts
Copyrighted �, 2000, 2001 by NetDragons.com
Last Updated Saturday, December 5, 1998 - 21:30 EST