Ejemplo n.º 1
0
 public Status(string s, int lvl, int tLft, ConsoleForeground cF, ConsoleBackground cB)
 {
     name = s;
     level = lvl;
     timeLeft = tLft;
     colorFore = cF;
     colorBack = cB;
 }
Ejemplo n.º 2
0
 public Status(string s, int lvl, int tLft, ConsoleForeground cF, ConsoleBackground cB)
 {
     name      = s;
     level     = lvl;
     timeLeft  = tLft;
     colorFore = cF;
     colorBack = cB;
 }
Ejemplo n.º 3
0
 public Status(string s, int lvl, Boolean perm, ConsoleForeground cF, ConsoleBackground cB)
 {
     name = s;
     level = lvl;
     colorFore = cF;
     colorBack = cB;
     permanent = perm;
     if (perm)
     {
         timeLeft = 1;
     }
 }
Ejemplo n.º 4
0
 public Status(string s, int lvl, Boolean perm, ConsoleForeground cF, ConsoleBackground cB)
 {
     name      = s;
     level     = lvl;
     colorFore = cF;
     colorBack = cB;
     permanent = perm;
     if (perm)
     {
         timeLeft = 1;
     }
 }
Ejemplo n.º 5
0
 public ConsoleForeground hungerColor(int x)
 {
     ConsoleForeground[] colors = new ConsoleForeground[] {
         ConsoleForeground.Maroon,
         ConsoleForeground.Maroon,
         ConsoleForeground.Red,
         ConsoleForeground.Red,
         ConsoleForeground.Red,
         ConsoleForeground.Green,
         ConsoleForeground.Green,
         ConsoleForeground.Olive,
         ConsoleForeground.Olive,
         ConsoleForeground.DarkGreen,
         ConsoleForeground.DarkGreen,
         ConsoleForeground.DarkGreen
     };
     return(colors[x]);
 }
Ejemplo n.º 6
0
 public static void TextColor(ConsoleForeground foreground, ConsoleBackground background)
 {
     CurrentConsolePen = (int)foreground + (int)background;
     SetConsoleTextAttribute(hConsoleOutput, CurrentConsolePen);
 }
Ejemplo n.º 7
0
 public ConsoleForeground hungerColor(int x)
 {
     ConsoleForeground[] colors = new ConsoleForeground[] {
         ConsoleForeground.Maroon,
         ConsoleForeground.Maroon,
         ConsoleForeground.Red,
         ConsoleForeground.Red,
         ConsoleForeground.Red,
         ConsoleForeground.Green,
         ConsoleForeground.Green,
         ConsoleForeground.Olive,
         ConsoleForeground.Olive,
         ConsoleForeground.DarkGreen,
         ConsoleForeground.DarkGreen,
         ConsoleForeground.DarkGreen
     };
     return colors[x];
 }
Ejemplo n.º 8
0
 /// <summary>
 /// Sets the console pen color to that specified.
 /// </summary>
 /// <param name="foreground">A foreground color specified from the 
 /// ConsoleForeground enumeration</param>
 /// <param name="background">A background color specified from the 
 /// ConsoleBackground enumeration</param>
 public static void TextColor(ConsoleForeground foreground, ConsoleBackground background)
 {
     CurrentConsolePen = (int)foreground + (int)background;
     SetConsoleTextAttribute(hConsoleOutput, CurrentConsolePen);
 }