Module Console2d
In: Console.cpp

This module contains functions used when creating text-based games.

Methods

clear   color=   exit   fill_line   flip   init   print   set_line_color   switch_auto_flip  

Constants

HORIZONTAL = H   Use this when attempting to select an horizontal line.
VERTICAL = V   Use this when attempting to select a vertical line.
LEFT = L   Use this when you want to draw something alligned on the left.
RIGHT = R   Use this when you want to draw something alligned on the right.

Public Class methods

Clears the screen.

[Source]

/*
  Clears the screen.
*/
VALUE rubyConsole2dClear(VALUE self) 

Sets Console2d’s color.

[Source]

/*
  call-seq: color=(col)

  Sets Console2d's color.
*/
VALUE rubyConsole2dSetColor(VALUE self, VALUE col) 

Exits the Console2d library, with a fading effect.

[Source]

/*
  Exits the Console2d library, with a fading effect.
*/
VALUE rubyConsole2dExit(VALUE self) 

Fills a line, either horizontally or vertically (depending on the given mode), starting from the given pos, with the +adv+th character, drawing a text.

[Source]

/*
  call-seq: fill_line(mode, pos, adv, txt)

  Fills a line, either horizontally or vertically (depending on the given mode),
  starting from the given pos, with the +adv+th character, drawing a text.
*/
VALUE rubyConsole2dFillLine(VALUE self, VALUE mode, VALUE pos, VALUE adv, 
                            VALUE txt) 

Flips the screen.

[Source]

/*
  Flips the screen.
*/
VALUE rubyConsole2dFlip(VALUE self) 

Inits the Console2d library.

[Source]

/*
  Inits the Console2d library.
 */
VALUE rubyConsole2dInit(VALUE self) 

Prints some text, either alligned on the left or on the right (this is set with mode).

[Source]

/*
  call-seq: print(x, y, mode, txt)

  Prints some text, either alligned on the left or on the right (this is set
  with mode).
*/
VALUE rubyConsole2dPrint(VALUE self, VALUE x, VALUE y, VALUE mode, 
                         VALUE txt) 

Draws a line in a given color.

[Source]

/*
  call-seq: set_line_color(y, col)

  Draws a line in a given color.
*/
VALUE rubyConsole2dSetLineColor(VALUE self, VALUE y, VALUE col) 

Switches auto_flip on/off. When true,

[Source]

/*
  Switches auto_flip on/off.
  When true,
 */
VALUE rubyConsole2dSwitchAutoFlip(VALUE self) 

[Validate]