using RhythmBase.Components;
namespace RhythmBase.Events
{
///
/// Represents an event that flips the screen in a room.
///
public class FlipScreen : BaseEvent, IRoomEvent
{
///
/// Initializes a new instance of the class.
///
public FlipScreen()
{
Rooms = new RDRoom(true, new byte[1]);
Type = EventType.FlipScreen;
Tab = Tabs.Actions;
}
///
/// Gets or sets the rooms associated with this event.
///
public RDRoom Rooms { get; set; }
///
/// Gets or sets a value indicating whether the screen should be flipped horizontally.
///
public bool FlipX { get; set; }
///
/// Gets or sets a value indicating whether the screen should be flipped vertically.
///
public bool FlipY { get; set; }
///
/// Gets the type of the event.
///
public override EventType Type { get; }
///
/// Gets the tab where this event is categorized.
///
public override Tabs Tab { get; }
///
/// Returns a string that represents the current object.
///
/// A string that represents the current object.
public override string ToString()
{
string result =
FlipX
? FlipY
? "X"
: "^v"
: FlipY
? "<>"
: "";
return base.ToString() + string.Format(" {0}", result);
}
}
}