File names

From SemanticLab

(Redirected from Dateinamen)
Jump to: navigation, search

We suggest using absolute rather than relative path names (use the whole package name starting with a slash and replace all dots with slashes).

 MyClass.java             -> /at/ac/wu/moelltal/plugins/example/images/MyClass.java
 images/tiles/wall.png    -> /at/ac/wu/moelltal/plugins/example/images/wall.png
 images/tiles/door.png    -> /at/ac/wu/moelltal/plugins/example/images/door.png
 images/hero.png          -> /at/ac/wu/moelltal/plugins/example/images/hero.png

Example

  package at.ac.wu.moelltal.plugins.example;
 
  // register new Tile-type (wall)
  Tile.registerTileType(getClass().getPackage(), "wall", \
     "/at/ac/wu/moelltal/plugins/example/images/tiles/wall.png");
Personal tools