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
|
Line | |
---|
1 | package com.example.advancewars;
|
---|
2 |
|
---|
3 | import com.example.gui.GUIObject;
|
---|
4 |
|
---|
5 | import android.graphics.Canvas;
|
---|
6 | import android.graphics.Color;
|
---|
7 | import android.graphics.Paint;
|
---|
8 |
|
---|
9 | public 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.