Snoke
Logo Class Reference

#include <logo.h>

Collaboration diagram for Logo:

Public Member Functions

void draw ()
 
void setPosition (int x, int y)
 
Point getSize ()
 
 Logo (int x, int y, PointStyle style, PointStyle shadowStyle, int language)
 

Private Attributes

int x
 
int y
 
PointStyle style
 
PointStyle shadowStyle
 
short language
 
std::vector< std::vector< const char * > > inscription
 

Detailed Description

Class of the giant snoke logo

Parameters
{int}x - x coordinate of left logo side
{int}y - y coordinate of top logo side
{PointStyle}style - style of the cells with logo
{PointStyle}shadowStyle - style of the cells with shadow of the logo
{short}language - language of the inscription at the logo, 0 - en, 1 - ru
{map<short,constchar*>} inscription - dictionary with translations for inscription

Definition at line 17 of file logo.h.

Constructor & Destructor Documentation

Logo::Logo ( int  x,
int  y,
PointStyle  style,
PointStyle  shadowStyle,
int  language 
)
Parameters
{PointStyle}style - style of the cells with logo
{PointStyle}shadowStyle - style of the cells with shadow of the logo

Definition at line 61 of file logo.cpp.

Member Function Documentation

void Logo::draw ( )

Draws Logo in console window

Definition at line 30 of file logo.cpp.

Point Logo::getSize ( )

Returns size of the logo

Returns
{Point} - width and height of the logo

Definition at line 18 of file logo.cpp.

void Logo::setPosition ( int  left,
int  top 
)

Sets coordinates of logo

Parameters
{int}left - x coordinate of left logo side
{int}top - y coordinate of top logo side

Definition at line 8 of file logo.cpp.

Member Data Documentation

std::vector<std::vector<const char*> > Logo::inscription
private

Definition at line 23 of file logo.h.

short Logo::language
private

Definition at line 22 of file logo.h.

PointStyle Logo::shadowStyle
private

Definition at line 21 of file logo.h.

PointStyle Logo::style
private

Definition at line 21 of file logo.h.

int Logo::x
private

Definition at line 20 of file logo.h.

int Logo::y
private

Definition at line 20 of file logo.h.


The documentation for this class was generated from the following files: