comparison game/Engine.java @ 192:8dbaa093c562

Improve debug message handling.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 23 Apr 2019 13:00:25 +0300
parents 189cd8fe2304
children f8626a142c4d
comparison
equal deleted inserted replaced
191:edf4081fecd6 192:8dbaa093c562
569 AboutBox aboutBox; 569 AboutBox aboutBox;
570 NewGameDialog newGameDialog; 570 NewGameDialog newGameDialog;
571 571
572 public void dbg(String msg) 572 public void dbg(String msg)
573 { 573 {
574 System.out.print("Engine: " + msg); 574 G.debug("Engine: " + msg);
575 } 575 }
576 576
577 public Engine() 577 public Engine()
578 { 578 {
579 // Initialize globals 579 // Initialize globals
580 System.out.print("Engine() constructor\n"); 580 G.debug("Engine() constructor\n");
581 581
582 // Sound system 582 // Sound system
583 G.smgr = new SoundManager(new AudioFormat(22050, 16, 1, true, false), 1); 583 G.smgr = new SoundManager(new AudioFormat(22050, 16, 1, true, false), 1);
584 584
585 // Load resources 585 // Load resources