package com.droidquest.materials; import java.awt.Color; import com.droidquest.avatars.GameCursor; import com.droidquest.decorations.Graphix; import com.droidquest.decorations.TextBox; import com.droidquest.items.GenericRobot; import com.droidquest.items.Item; import com.droidquest.items.Magnet; public class ElevatorDoor extends Material { // This material will open or close the elevator doors based on where // the player is. It is sensitive to the player being inside a robot. transient boolean checkedForMagnet = false; transient Item magnet = null; public ElevatorDoor() { super(Color.black, true, false); } public void TouchedByItem(Item item) { if (item.carriedBy!=null) return; if (!checkedForMagnet) { for (int a=0; a