help with creation of elevator simulator...
I'm trying to create an elevator simulator but i'm having a problem making the elevator pause (for like 5secs) at the necessary floors to show the pick up & let off passengers ...
Any suggestions on how to make it pause?
I'm using: a timer to paint a graphic into a panel
I'm not sure if any other information is needed... but if so just say & i'll post it.
Thanks alot.
[415 byte] By [
jrcnursea] at [2007-10-2 4:05:36]

TJacobs, that's an excellent idea, but I wonder when the number of threads goes up (and factor in the GUI event thread) whether those counts will still be accurate.
I think another way to go would be to have one thread for all the elevators. Have it sleep at one second intervals. Then, have that thread wake up and iterate over each elevator. Each elevator class would sequentially evaluate its position. You would need to introduce an element of time into your elevator classes, having them calculate delta position or wait time in terms of one second units.
Just a thought.
- Saish
Saisha at 2007-7-15 23:28:21 >
