summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2015-12-07 16:16:09 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2015-12-07 16:16:09 +0100
commitcfe450c416539a029ac8b3e0068f88d02f15539f (patch)
tree9c9c1f9d3a7d2568d2dbacfa3d31f46f53313a61 /core/src/ch/asynk
parent7888d89f5c3075e4bb731549a7ec8dc195b77a73 (diff)
downloadRustAndDust-cfe450c416539a029ac8b3e0068f88d02f15539f.zip
RustAndDust-cfe450c416539a029ac8b3e0068f88d02f15539f.tar.gz
Meteorology: add isNight()
Diffstat (limited to 'core/src/ch/asynk')
-rw-r--r--core/src/ch/asynk/rustanddust/engine/Meteorology.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/src/ch/asynk/rustanddust/engine/Meteorology.java b/core/src/ch/asynk/rustanddust/engine/Meteorology.java
index 9addf63..6785e0f 100644
--- a/core/src/ch/asynk/rustanddust/engine/Meteorology.java
+++ b/core/src/ch/asynk/rustanddust/engine/Meteorology.java
@@ -15,6 +15,11 @@ public class Meteorology
clear();
}
+ public boolean isNight()
+ {
+ return (this.day == Day.NIGHT);
+ }
+
public void clear()
{
day = Day.DAY;