Back to project page Open-Android-Game.
The source code is released under:
GNU General Public License
If you think the Android project Open-Android-Game listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
/* Tile.java - Class for describing tiles. * /*from ww w . j a va 2 s. c o m*/ * Copyright 2011 Open-Android-Game Group * Please see the file COPYING in this * distribution for license terms. */ package com.kylepaulsen.openAndroidGame; import android.graphics.Bitmap; import android.graphics.Canvas; public class Tile { private int id; private Bitmap bitmap; private boolean passable; public Tile(int id, Bitmap bitmap, boolean passable){ this.bitmap = bitmap; this.id = id; this.passable = passable; } public Bitmap getBitmap() { return this.bitmap; } public void setBitmap(Bitmap bitmap){ this.bitmap = bitmap; } public boolean isPassible(){ return passable; } }