From 2c7c2762c2536d2745035f12db05f02707667b6a Mon Sep 17 00:00:00 2001 From: Tomasz Piechucki Date: Wed, 13 Apr 2011 09:58:06 +0000 Subject: [PATCH] FFFFFFFFFFFFFUUUUUUUUUUUUUUU --- Winda/src/winda/gui/WindaView.form | 26 +++++++++++++------------- Winda/src/winda/gui/WindaView.java | 25 +++++++++++++++++++++---- Winda/src/winda/logic/PasazerSort.java | 2 +- Winda/src/winda/logic/Winda.java | 3 ++- 4 files changed, 37 insertions(+), 19 deletions(-) diff --git a/Winda/src/winda/gui/WindaView.form b/Winda/src/winda/gui/WindaView.form index e28c117..e17c4d8 100644 --- a/Winda/src/winda/gui/WindaView.form +++ b/Winda/src/winda/gui/WindaView.form @@ -33,7 +33,7 @@ - + @@ -68,7 +68,7 @@ - + @@ -99,7 +99,7 @@ - + @@ -154,8 +154,8 @@ - - + + @@ -266,7 +266,7 @@ - + @@ -275,13 +275,13 @@ - + - + @@ -309,7 +309,7 @@ - + @@ -405,18 +405,18 @@ - + - + - + @@ -661,7 +661,7 @@ - + diff --git a/Winda/src/winda/gui/WindaView.java b/Winda/src/winda/gui/WindaView.java index 2913bd5..d914b88 100644 --- a/Winda/src/winda/gui/WindaView.java +++ b/Winda/src/winda/gui/WindaView.java @@ -31,6 +31,7 @@ import winda.logic.Winda; public class WindaView extends FrameView{ private ElevatorMovement em; Winda w = new Winda(); + private int floor_count =12; public WindaView(SingleFrameApplication app) { super(app); @@ -95,6 +96,23 @@ public class WindaView extends FrameView{ this.drawAnimation(); } + + private void setupAnimation(){ + int []passangers = new int[this.floor_count]; + for(int i=0;i