Where the editor draws the play area, shrunk to show the strip beyond its right edge where the enemies appear, and the timeline of the waves under it.
More...
#include </__w/project-rtype/project-rtype/client/network/include/rtype/level_editor.hpp>
|
| bool | on_timeline (aegis2d::Vec2 screen) const noexcept |
| | Tells whether a point of the screen is on the timeline.
|
| |
| aegis2d::Vec2 | to_screen (aegis2d::Vec2 level) const noexcept |
| | A point of the play area on screen.
|
| |
| aegis2d::Vec2 | to_level (aegis2d::Vec2 screen) const noexcept |
| | The point of the play area under a point of the screen.
|
| |
|
| static float | timeline_seconds (float end) noexcept |
| | Seconds of the waves the timeline shows across its width.
|
| |
|
| float | scale = 0.74F |
| | Size of a logical pixel of the play area on screen.
|
| |
| aegis2d::Vec2 | origin {131.0F, 48.0F} |
| | Where the top-left corner of the play area is on screen.
|
| |
| aegis2d::Vec2 | timeline {131.0F, 608.0F} |
| | Where the timeline of the waves is on screen: its top-left corner.
|
| |
| aegis2d::Vec2 | timeline_size {1018.0F, 28.0F} |
| | Size of the timeline on screen.
|
| |
|
| static constexpr float | strip = 96.0F |
| | Width of the strip beyond the right edge of the play area that is shown.
|
| |
Where the editor draws the play area, shrunk to show the strip beyond its right edge where the enemies appear, and the timeline of the waves under it.
◆ on_timeline()
| bool rtype::EditorView::on_timeline |
( |
aegis2d::Vec2 |
screen | ) |
const |
|
noexcept |
Tells whether a point of the screen is on the timeline.
- Parameters
-
- Returns
true inside it.
◆ timeline_seconds()
| static float rtype::EditorView::timeline_seconds |
( |
float |
end | ) |
|
|
staticnoexcept |
Seconds of the waves the timeline shows across its width.
- Parameters
-
- Returns
- At least 10 seconds, and a fifth more than
end so the last wave can move later.
◆ to_level()
| aegis2d::Vec2 rtype::EditorView::to_level |
( |
aegis2d::Vec2 |
screen | ) |
const |
|
noexcept |
The point of the play area under a point of the screen.
- Parameters
-
| screen | Point on screen, such as the mouse. |
- Returns
- The point of the play area.
◆ to_screen()
| aegis2d::Vec2 rtype::EditorView::to_screen |
( |
aegis2d::Vec2 |
level | ) |
const |
|
noexcept |
A point of the play area on screen.
- Parameters
-
| level | Point of the play area. |
- Returns
- The point on screen.
◆ origin
| aegis2d::Vec2 rtype::EditorView::origin {131.0F, 48.0F} |
Where the top-left corner of the play area is on screen.
◆ scale
| float rtype::EditorView::scale = 0.74F |
Size of a logical pixel of the play area on screen.
◆ strip
| constexpr float rtype::EditorView::strip = 96.0F |
|
staticconstexpr |
Width of the strip beyond the right edge of the play area that is shown.
◆ timeline
| aegis2d::Vec2 rtype::EditorView::timeline {131.0F, 608.0F} |
Where the timeline of the waves is on screen: its top-left corner.
◆ timeline_size
| aegis2d::Vec2 rtype::EditorView::timeline_size {1018.0F, 28.0F} |
Size of the timeline on screen.
The documentation for this struct was generated from the following file: