Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 73: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 74: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 75: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 76: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 77: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 78: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
package src.pacman.view; import java.util.ArrayList; import java.util.HashMap; import java.util.Map; import src.pacman.controller.PacmanGame; import src.pacman.controller.R; import src.pacman.model.Level; import src.pacman.util.DrawThread; import src.pacman.util.Position; import src.pacman.util.Speed; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.Canvas; import android.util.Log; import android.view.SurfaceHolder; import android.view.SurfaceView; public class GameBoard extends SurfaceView implements SurfaceHolder.Callback { private Pacman pacman; private PacmanGame pacmanGame; private Canvas fCanvas; private DrawThread drawThread; private Map bitmapCache = new HashMap(); private ArrayList staticGameObjects = new ArrayList(); public GameBoard(PacmanGame pacmanGame) { super(pacmanGame); this.pacmanGame = pacmanGame; } public void init() { drawThread = new DrawThread(getHolder(), this); fillBitmapCache(); drawLevel(); initPacman(); } private void initPacman() { pacman = new Pacman(this, R.drawable.pacman, Level.getInstance().getPacmanStartPosition(), new Speed(10, Speed.UP)); } private void drawLevel() { for (int x = 0; x < Level.getInstance().getLevel().length; x++) { for (int y = 0; y < Level.getInstance().getLevel().length; y++) { if (Level.getInstance().getLevel()[x][y] == Level.BORDER) { addStaticGameObject(new Border(this, R.drawable.border, new Position( ((x + 1) * 10) - 5, (y + 1) * 10))); } else if (Level.getInstance().getLevel()[x][y] == Level.FREE) { addStaticGameObject(new Border(this, R.drawable.free, new Position( ((x + 1) * 10) - 5, (y + 1) * 10))); } else if (Level.getInstance().getLevel()[x][y] == Level.PILLS) { addStaticGameObject(new Border(this, R.drawable.pill, new Position( ((x + 1) * 10) - 5, (y + 1) * 10))); } } } } @Override public void onDraw(Canvas canvas) { fCanvas = canvas; /** for (GameObject g: staticGameObjects) { g.drawObject(); } **/ pacman.drawObject(); Log.e("PACMAN", "DRAW"); } private void fillBitmapCache() { bitmapCache.put(R.drawable.border, BitmapFactory.decodeResource(getResources(), R.drawable.border)); bitmapCache.put(R.drawable.free, BitmapFactory.decodeResource(getResources(), R.drawable.free)); bitmapCache.put(R.drawable.pill, BitmapFactory.decodeResource(getResources(), R.drawable.pill)); bitmapCache.put(R.drawable.pacman, BitmapFactory.decodeResource(getResources(), R.drawable.pacman)); } public void addStaticGameObject(GameObject gameObject){ staticGameObjects.add(gameObject); } @Override public void surfaceChanged(SurfaceHolder arg0, int arg1, int arg2, int arg3) { } @Override public void surfaceCreated(SurfaceHolder holder) { drawThread.setRunning(true); drawThread.start(); } @Override public void surfaceDestroyed(SurfaceHolder holder) { boolean retry = true; drawThread.setRunning(false); while (retry) { try { drawThread.join(); retry = false; } catch (InterruptedException e) { } } } public Canvas getCanvas() { return fCanvas; } public Map getBitmapCache() { return bitmapCache; } public void updatePositions() { pacman.updatePosition(); } }