Advertisement
Guest User

drawable

a guest
Oct 17th, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.41 KB | None | 0 0
  1. package robot.ascii.impl;
  2.  
  3. import com.googlecode.lanterna.TextColor;
  4. import com.googlecode.lanterna.terminal.swing.SwingTerminalFrame;
  5.  
  6. public interface Drawable
  7. {
  8. // set robot speed to 0 initially? (for testing)
  9. public static final boolean START_PAUSED=false;
  10.  
  11. // thickness of item segments in robot co-ordinates (unscaled)
  12. public static final int ARM1_WIDTH=1;
  13. public static final int ARM2_HEIGHT=1;
  14. public static final int ARM3_WIDTH=1;
  15. public static final int BAR_WIDTH = 1;
  16. public static final int BLOCK_WIDTH = 1;
  17. // display chars (can be set individually in AbstractItem subclasses) constructors
  18. public static final char OVERFLOW_DIGIT='+';
  19. public static final char ARM_CHAR=' ';
  20. public static final char BAR_CHAR=' ';
  21. public static final char BLOCK_CHAR=' ';
  22.  
  23. public static final TextColor.ANSI[] BLOCK_COLORS_FG = new TextColor.ANSI[]
  24. { TextColor.ANSI.YELLOW, TextColor.ANSI.RED, TextColor.ANSI.BLUE };
  25. public static final TextColor.ANSI[] BLOCK_COLORS_BG = new TextColor.ANSI[]
  26. { TextColor.ANSI.YELLOW, TextColor.ANSI.RED, TextColor.ANSI.BLUE };
  27. public static final TextColor ARM_COLOR_FG = TextColor.ANSI.WHITE;
  28. public static final TextColor ARM_COLOR_BG = TextColor.ANSI.WHITE;
  29. public static final TextColor BAR_COLOR_FG = TextColor.ANSI.GREEN;
  30. public static final TextColor BAR_COLOR_BG = TextColor.ANSI.GREEN;
  31.  
  32. public abstract void draw(SwingTerminalFrame terminalFrame);
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement