public void NewStep() { int step = PlayerStateHistory.CURRENT_STEP - BIRTH_STEP; NewLocation(PlayerStateHistory.CURRENT_STEP - BIRTH_STEP); if (step == next_change_event) { RoomChangeEvent room_change_event = PlayerStateHistory.room_change_events [change_event_index]; next_change_event = room_change_event.step; current_room = room_change_event.room_id; state = RoomObject.GetActivityState(room_change_event.room_id); } }
public static void PlayerRoomChangeEvent() { RoomChangeEvent new_change_event = new RoomChangeEvent(); new_change_event.room_id = Player.CURRENT_LOCATION_STATE.room_id; new_change_event.step = CURRENT_STEP + 1; room_change_events.Add(new_change_event); if (DebugConstants.ROOM_COLORATION_RULES == DebugConstants.RoomColorationPolicy.DEBUG_BY_DISTANCE_TO_PLAYER) { RoomCollection.INSTANCE.ColorRooms(); } }
public void Notify(IEvent @event) { RoomChangeEvent roomChangeEvent = (RoomChangeEvent)@event; focusOnPlayer(roomChangeEvent.Position); }