|
Study Dungeon
1.0.0
A group project for COSC345
|
An object that stores ascii art in the form of a string. More...
#include <menu.h>
Public Member Functions | |
| AsciiArt (const std::string &name, const std::vector< std::string > &artLines, int x=0, int y=0) | |
| Construct a new Ascii Art object. More... | |
| const std::string & | getName () const |
| Get the Name of the art. More... | |
| const std::vector< std::string > & | getArt () const |
| Get the lines comprising the art. More... | |
| int | getX () const |
| Get the left most position. More... | |
| int | getY () const |
| Get the top most position. More... | |
| size_t | getWidth () const |
| Get the Width of the art. More... | |
| size_t | getHeight () const |
| Get the Height of the art. More... | |
| void | setPosition (int x, int y) |
| Set the position of the top left corner. More... | |
An object that stores ascii art in the form of a string.
| ConsoleUI::AsciiArt::AsciiArt | ( | const std::string & | name, |
| const std::vector< std::string > & | artLines, | ||
| int | x = 0, |
||
| int | y = 0 |
||
| ) |
Construct a new Ascii Art object.
| name | name of the art |
| artLines | vector of strings/lines that make up the art |
| x | left most position to place the art |
| y | top most position to place the art |
| const std::vector< std::string > & ConsoleUI::AsciiArt::getArt | ( | ) | const |
Get the lines comprising the art.
| size_t ConsoleUI::AsciiArt::getHeight | ( | ) | const |
Get the Height of the art.
| const std::string & ConsoleUI::AsciiArt::getName | ( | ) | const |
Get the Name of the art.
| size_t ConsoleUI::AsciiArt::getWidth | ( | ) | const |
Get the Width of the art.
| int ConsoleUI::AsciiArt::getX | ( | ) | const |
Get the left most position.
| int ConsoleUI::AsciiArt::getY | ( | ) | const |
Get the top most position.
| void ConsoleUI::AsciiArt::setPosition | ( | int | x, |
| int | y | ||
| ) |
Set the position of the top left corner.
| x | left most position |
| y | top most position |