Adventure at Umalu  22nd March, 2013
Rogue-like Dungeon Crawler, written in Java
 All Classes Functions Variables Pages
Public Member Functions | Static Public Member Functions | List of all members
rogue.system.Path Class Reference

Public Member Functions

void runningFromJar ()
 

Static Public Member Functions

static String generatePath (String path)
 
static boolean isWin ()
 
static boolean pathEndsWithSourceFolder (String path)
 
static String generateAbsolutePath (String path)
 

Detailed Description

Path Helperclass. Contains functions to create Several paths

Member Function Documentation

static String rogue.system.Path.generateAbsolutePath ( String  path)
static

Creates an Absolute Path to path

Parameters
pathPath to which absolute path should be created
Returns
Absolute Path
static String rogue.system.Path.generatePath ( String  path)
static

Generates an absolute Pathstring from a given relative Path. Automatically adds src folder if not given in working directory.

Parameters
pathRelative Path in Form "[folder]/[path]".
Returns
Absolute Path in current Workingdirectory
static boolean rogue.system.Path.isWin ( )
static

Checks if current OS is Windows

Returns
Windows System
static boolean rogue.system.Path.pathEndsWithSourceFolder ( String  path)
static

Checks, if given Path already includes src/ Folder. Needed, because eclipse started instances, don't include src/ in user.dir while Command line started instances do

Parameters
pathPath to be checked
Returns
True, if path already includes src Folder
void rogue.system.Path.runningFromJar ( )

Checks if Application is running from a .jar File and sets SystemHelper.isJar accordingly


The documentation for this class was generated from the following file: