Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // I get the funny fealing I messed something up with these loops since it renders the text inside the inner loop the same number of times as the number of sprites. v_v
- public void drawMapToComConsole()
- {
- for(int y = 0; y < getRows(); y++)
- {
- //System.out.print(x + " ");
- for(int x = 0; x < getCols(y); x++)
- {
- System.out.print( "[");
- for(int i = 0; i < bots.size(); i++)
- {
- if(getBot(i).getXpos() == getGrid(y,x).getXpos() &&
- getBot(i).getYpos() == getGrid(y,x).getYpos())
- {
- System.out.print( getBot(i).displayChar() );//
- }
- else
- {
- System.out.print(getGrid(y,x).getCorrectDisplayer());//.getCorrectDisplayer()
- }
- }
- System.out.print("]");
- }
- System.out.println();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement