diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2015-12-07 16:16:09 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2015-12-07 16:16:09 +0100 |
commit | cfe450c416539a029ac8b3e0068f88d02f15539f (patch) | |
tree | 9c9c1f9d3a7d2568d2dbacfa3d31f46f53313a61 /core/src | |
parent | 7888d89f5c3075e4bb731549a7ec8dc195b77a73 (diff) | |
download | RustAndDust-cfe450c416539a029ac8b3e0068f88d02f15539f.zip RustAndDust-cfe450c416539a029ac8b3e0068f88d02f15539f.tar.gz |
Meteorology: add isNight()
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/ch/asynk/rustanddust/engine/Meteorology.java | 5 |
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; |