19.07.2011, 21:50
Well the x and y of the elevator are constants because they never should change if it's simply going up and down. The way I did it was just use a variable to store the elevator's current floor and when it changes, use switch case to see what z the next floor will be on.