Skip to content
This repository has been archived by the owner on Jun 12, 2023. It is now read-only.

Commit

Permalink
#6 [Lib-Tile-Customized-Examples] Add new library Lib-Tile-Customized…
Browse files Browse the repository at this point in the history
…-Examples.
  • Loading branch information
Naoghuman committed Aug 7, 2017
1 parent a8156ec commit 7808986
Show file tree
Hide file tree
Showing 10 changed files with 884 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@
/Lib-Tile-SubtlePatterns-Images/target/
/Lib-Tile-TransparentTextures/target/
/Lib-Tile-TransparentTextures-Images/target/
/Lib-Tile-Customized-Examples/target/
/target/
1 change: 1 addition & 0 deletions Lib-Tile-Customized-Examples/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.versionsBackup
674 changes: 674 additions & 0 deletions Lib-Tile-Customized-Examples/LICENSE

Large diffs are not rendered by default.

49 changes: 49 additions & 0 deletions Lib-Tile-Customized-Examples/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
Lib-Tile-Customized-Examples
===



Intention
---

TODO



Content
---

* [License](#License)
* [Autor](#Autor)
* [Contact](#Contact)



License<a name="License" />
---

The project `Lib-Tile` and all sub-projects are licensed under [General Public License 3.0].



Autor<a name="Autor" />
---

The project `Lib-Tile` and all sub-projects are maintained by me, Peter Rogge.
See [Contact](#Contact).



Contact<a name="Contact" />
---

You can reach me under <peter.rogge@yahoo.de>.



[//]: # (Images)



[//]: # (Links)
[General Public License 3.0]:http://www.gnu.org/licenses/gpl-3.0.en.html
18 changes: 18 additions & 0 deletions Lib-Tile-Customized-Examples/nb-configuration.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<project-shared-configuration>
<!--
This file contains additional configuration written by modules in the NetBeans IDE.
The configuration is intended to be shared among all the users of project and
therefore it is assumed to be part of version control checkout.
Without this configuration present, some functionality in the IDE may be limited or fail altogether.
-->
<properties xmlns="http://www.netbeans.org/ns/maven-properties-data/1">
<!--
Properties that influence various parts of the IDE, especially code formatting and the like.
You can copy and paste the single properties, into the pom.xml file and the IDE will pick them up.
That way multiple projects can share the same settings (useful for formatting rules for example).
Any value defined here will override the pom.xml file value but is only applicable to the current project.
-->
<netbeans.hint.license>gpl30</netbeans.hint.license>
</properties>
</project-shared-configuration>
56 changes: 56 additions & 0 deletions Lib-Tile-Customized-Examples/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.github.naoghuman</groupId>
<artifactId>lib-tile</artifactId>
<version>0.2.0-SNAPSHOT</version>
</parent>

<artifactId>lib-tile-customized-examples</artifactId>
<name>Lib-Tile-Customized-Examples</name>
<packaging>jar</packaging>
<inceptionYear>2016</inceptionYear>
<url>https://github.com/Naoghuman/lib-tile.git</url>

<description>The library Lib-Tile-Customized-Examples contains examples how to load reduced and/or mixed predefined tilesets with own tilesets.</description>

<build>
<defaultGoal>clean package</defaultGoal>
<finalName>${project.artifactId}-${project.version}</finalName>
</build>

<developers>
<developer>
<email>peter.rogge@yahoo.de</email>
<id>Naoghuman</id>
<name>Peter Rogge</name>
<timezone>+1</timezone>
<url>https://github.com/Naoghuman/lib-tile.git</url>
</developer>
</developers>

<licenses>
<license>
<name>The GNU General Public License, Version 3.0</name>
<url>http://www.gnu.org/licenses/gpl-3.0.en.html</url>
<distribution>repo</distribution>
<comments>The GNU General Public License is a free, copyleft license for software and other kinds of works.</comments>
</license>
</licenses>

<dependencies>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>lib-tile-core</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>lib-tile-transparenttextures</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>

</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
/*
* Copyright (C) 2016 Naoghuman
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.github.naoghuman.lib.tile.customized.examples.reducedtileset;

import com.github.naoghuman.lib.tile.core.TileSet;
import com.github.naoghuman.lib.tile.transparenttextures.TransparentTexturesTileSet;
import com.github.naoghuman.lib.tile.transparenttextures.images.TransparentTexturesTileLoader;
import java.util.Optional;

/**
*
* @author Naoghuman
*/
public final class CustomizedExampleReducedTileSet extends TileSet {

private static final Optional<CustomizedExampleReducedTileSet> instance = Optional.of(new CustomizedExampleReducedTileSet());

/**
* Returns a singleton instance from the class <code>CustomizedExampleReducedTileSet</code>.
*
* @return a singleton instance from the class <code>CustomizedExampleReducedTileSet</code>.
*/
public static final CustomizedExampleReducedTileSet getDefault() {
return instance.get();
}

private CustomizedExampleReducedTileSet() {
super();
}

@Override
protected void configureTileLoaders() {
super.addTileLoader(TransparentTexturesTileLoader.getDefault());
}

@Override
protected void configureTiles() {
super.addTile(TransparentTexturesTileSet.TT_3PX_TILE);
super.addTile(TransparentTexturesTileSet.TT_60_LINES);
super.addTile(TransparentTexturesTileSet.TT_ARCHES);
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*
* Copyright (C) 2016 Naoghuman
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

/**
* This package allowed access to the tileset <code>Customized Example A<code> through
* the class {@link com.github.naoghuman.lib.tile.customized.examples.a.CustomizedExampleATile}.
*
* @see com.github.naoghuman.lib.tile.customized.examples.a.CustomizedExampleATile
*/
package com.github.naoghuman.lib.tile.customized.examples.reducedtileset;
2 changes: 2 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ A `Tile` is per definition a little transparent [Image] which overlay a backgrou
<include>**/*.css</include>
<include>**/*.properties</include>
<include>**/*.png</include>
<include>**/*.txt</include>
</includes>
</resource>
<resource>
Expand All @@ -135,6 +136,7 @@ A `Tile` is per definition a little transparent [Image] which overlay a backgrou
<include>**/*.css</include>
<include>**/*.properties</include>
<include>**/*.png</include>
<include>**/*.txt</include>
</includes>
</resource>
</resources>
Expand Down
1 change: 1 addition & 0 deletions release/Release_v0.2.0_2017-MM-dd_HH-mm.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ layer.

#### Feature
#8 [Lib-Tile] Prepare libraries for Maven Central.
#6 [Lib-Tile-Customized-Examples] Add new library Lib-Tile-Customized-Examples.



Expand Down

0 comments on commit 7808986

Please sign in to comment.