Icarus.Resources The Config Parser will parse a config file of the following format: # This is a comment variable: value variable: value variable: value Generate a new ConfigParser The configuration file to parse Parses the configuration file. Retrieve the next Vcombo object The next Vcombo, null if there is none Retrieve the next line, automagically skips the comments The next non-comment line, null if there is none Gets or sets configuration properties. This stores a variable/value combination as generated by the ConfigParser class. Generate a new Vcombo with fields as defined in the parameter list The variable name The variable value This stores the variable name in string Representaton The variable name is everything before the first ":" Example: Stinkyness: -50 Variable is the string "Strinkyness" The value of the variable in a string Representation This contains everything after the first ":" not including whitespace. Example: Stinkyness:-50 Stinkyness: -50 Stinkyness: -50 All have a value of the string "-50" Example: PATH: C:\My Stuff\Video Games\SuperCool Has a value of the string: "C:\My Stuff\Video Games\SuperCool" The resource manager class gives us a central repository of paths that the application needs to access its assets, like graphics, sounds, etc. Singleton Implementation. Singleton Implementation. The base path of the application. The name of the directory, relative to the base path, where the images reside. The name of the directory, relative to the base path, where the levels reside. The name of the directory, relative to the base path, where the music resides. The name of the directory, relative to the base path, where the text files reside. The name of the directory, relative to the base path, where the sound files reside. Gets a random sound from the directory whose id is passed in. Singleton Implementation. Returns the base path for all the resources. By default, the base path is the directory from which the application is launched. Gets or sets the name of the directory, relative to the base path, where the images reside. Gets or sets the name of the directory, relative to the base path, where the levels reside. Gets or sets the name of the directory, relative to the base path, where the music resides. Gets or sets the name of the directory, relative to the base path, where the text files reside. Gets or sets the name of the directory, relative to the base path, where the sound files reside. Gets the full path to the image directory. Gets the full path to the levels directory. Gets the full path to the music directory. Gets the full path to the sound directory. Gets the full path to the text directory.