source: advance-wars/src/com/example/advancewars/Tile.java@ 26a9fd6

Last change on this file since 26a9fd6 was 26a9fd6, checked in by dportnoy <devnull@…>, 14 years ago

Added a Window class that draws all GUI objects that are added to it.

  • Property mode set to 100644
File size: 348 bytes
RevLine 
[2e798d9]1package com.example.advancewars;
2
[26a9fd6]3import com.example.gui.GUIObject;
4
[2e798d9]5import android.graphics.Canvas;
6import android.graphics.Color;
7import android.graphics.Paint;
8
9public class Tile {
10 private Paint p;
11
12 public Tile(Paint p) {
13 this.p = p;
14 }
15
16 public void draw(Canvas c, int x, int y) {
17 c.drawRect(x, y, x+50, y+50, p);
18 }
19}
Note: See TracBrowser for help on using the repository browser.