public FlagDoor(float newX, float newY, LevelState.FlagColor color) { creation(); removeFromGame = false; horizontal_pos = newX; vertical_pos = newY; doorColor = color; doorHeight = 8; width = 29.5f; height = 32f + (8f * doorHeight); doorIsClosed = true; }
public FlagCloseSwitch(float newX, float newY, LevelState.FlagColor color) { horizontal_pos = newX; vertical_pos = newY; width = 32f; height = 128f; LevelState.setFlag(color, true); this.color = color; }
public FlagLock(float newX, float newY, LevelState.FlagColor newColor) { creation(); horizontal_pos = newX; vertical_pos = newY; width = 29.5f; height = 29.5f; color = newColor; }
public FlagKey(float newX, float newY, LevelState.FlagColor newColor) { creation(); horizontal_pos = newX; vertical_pos = newY; width = 29.5f; height = 29.5f; velocity = Vector2.Zero; acceleration = Vector2.Zero; acceleration.Y = 0.001f; pole = Polarity.Neutral; magneticMoment = 0.5f; color = newColor; originalPosition = new Vector2(horizontal_pos, vertical_pos); rotation = 0.0f; }