2021-08-19 22:07:58 +00:00
|
|
|
// texteffects.h: Header file for the texteffects library for SilverMUD.
|
|
|
|
// Barry Kane, 2021.
|
2021-08-15 18:42:37 +00:00
|
|
|
#ifndef TEXTEFFECTS_H_
|
|
|
|
#define TEXTEFFECTS_H_
|
|
|
|
#include <stdio.h>
|
2021-09-10 14:03:02 +00:00
|
|
|
#include <ncurses.h>
|
2021-08-15 18:42:37 +00:00
|
|
|
|
2022-10-18 20:00:57 +00:00
|
|
|
// A character by character print, similar to a serial terminal with lower baud rate.
|
2021-08-19 22:07:58 +00:00
|
|
|
void slowPrint(char * stringToPrint, int delay);
|
2021-08-15 18:42:37 +00:00
|
|
|
|
2022-10-18 20:00:57 +00:00
|
|
|
// The same, altered to work with ncurses.
|
2022-03-15 14:52:49 +00:00
|
|
|
void slowPrintNcurses(char * stringToPrint, int delay, WINDOW * window, bool bolded);
|
2021-09-03 17:47:11 +00:00
|
|
|
|
2022-10-18 20:00:57 +00:00
|
|
|
// A character by character "brute-force" print, similar to Hollywood hacking scenes.
|
|
|
|
void bruteforcePrint(char * stringToPrint, int delay);
|
|
|
|
|
|
|
|
// The same, altered to work with ncurses.
|
|
|
|
void bruteforcePrintNcurses(char * stringToPrint, int delay, WINDOW * window, bool bolded);
|
|
|
|
|
2021-08-15 18:42:37 +00:00
|
|
|
// A string containing an ASCII art version of the Silverkin Industries logo.
|
2022-10-18 20:00:57 +00:00
|
|
|
char * logostring =
|
|
|
|
" ///////\n"
|
2022-10-30 12:58:39 +00:00
|
|
|
" //////////////////////////////////////////\n"
|
|
|
|
" ///////////////////////////////////////////////////////////\n"
|
|
|
|
" ////////// ////////////////////////////\n"
|
|
|
|
" ### # # # # ##### ### # # # # # /////////////////\n"
|
|
|
|
" ## # # # # ## # # ### # ## # //////////////\n"
|
|
|
|
" ## # # # # # ### # # # # # # /////////\n"
|
|
|
|
" ### # ### # ##### # # # # # # # ///////\n"
|
|
|
|
" # ## # ##### # # ### ### ### # ##### ### //////\n"
|
|
|
|
" # # # # # # # # ## # # # # ## ## ////\n"
|
|
|
|
" # # # # # # # # ## # ### # # ## //\n"
|
|
|
|
" # # ### ##### ##### ### # # # # #### ### /\n";
|
2021-08-15 18:42:37 +00:00
|
|
|
|
2022-10-16 15:13:33 +00:00
|
|
|
void wrapString(char * stringToWrap, int stringLength, int screenWidth);
|
2021-08-15 18:42:37 +00:00
|
|
|
#endif
|