diff options
author | Starla Insigna <hatkirby@fourisland.com> | 2012-06-02 21:45:40 -0400 |
---|---|---|
committer | Starla Insigna <hatkirby@fourisland.com> | 2012-06-02 21:45:40 -0400 |
commit | fa27ef18695e007deeaf8d2a372e85c13d54764a (patch) | |
tree | 7648b81a947ad04bf0a39ba24d2f635c573901f0 /src/com/fourisland/frigidearth/Functions.java | |
parent | df65f21501cf8e3de51d01fee4eab1d488bd568c (diff) | |
download | frigidearth-fa27ef18695e007deeaf8d2a372e85c13d54764a.tar.gz frigidearth-fa27ef18695e007deeaf8d2a372e85c13d54764a.tar.bz2 frigidearth-fa27ef18695e007deeaf8d2a372e85c13d54764a.zip |
Replaced basic dungeon generator with a much cooler one
Also added support for more than two types of tiles, which are represented by characters. Later I'll add the functionality for different coloring of characters, because the bright Xs are kind of annoying.
Diffstat (limited to 'src/com/fourisland/frigidearth/Functions.java')
-rw-r--r-- | src/com/fourisland/frigidearth/Functions.java | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/com/fourisland/frigidearth/Functions.java b/src/com/fourisland/frigidearth/Functions.java new file mode 100644 index 0000000..cb57086 --- /dev/null +++ b/src/com/fourisland/frigidearth/Functions.java | |||
@@ -0,0 +1,21 @@ | |||
1 | /* | ||
2 | * To change this template, choose Tools | Templates | ||
3 | * and open the template in the editor. | ||
4 | */ | ||
5 | package com.fourisland.frigidearth; | ||
6 | |||
7 | import java.util.Random; | ||
8 | |||
9 | /** | ||
10 | * | ||
11 | * @author hatkirby | ||
12 | */ | ||
13 | public class Functions | ||
14 | { | ||
15 | public static int random(int min, int max) | ||
16 | { | ||
17 | Random r = new Random(); | ||
18 | |||
19 | return r.nextInt(max - min + 1) + min; | ||
20 | } | ||
21 | } | ||