Last change
on this file since 9b87c8d was 159eef8, checked in by dportnoy <devnull@…>, 15 years ago |
Created basic interfaces for Fleet and Planet.
|
-
Property mode
set to
100644
|
File size:
485 bytes
|
Rev | Line | |
---|
[159eef8] | 1 | package com.example.helloandroid;
|
---|
| 2 |
|
---|
| 3 | public class Fleet {
|
---|
| 4 | int x;
|
---|
| 5 | int y;
|
---|
| 6 | double direction;
|
---|
| 7 | Planet destination;
|
---|
| 8 | int numShips;
|
---|
| 9 | int faction;
|
---|
| 10 |
|
---|
| 11 | public Fleet(Planet source, Planet destination, int numShips, int faction) {
|
---|
| 12 | x = source.getX();
|
---|
| 13 | y = source.getY();
|
---|
| 14 |
|
---|
| 15 | this.numShips = numShips;
|
---|
| 16 | this.faction = faction;
|
---|
| 17 | this.destination = destination;
|
---|
| 18 | }
|
---|
| 19 |
|
---|
| 20 | public void update() {
|
---|
| 21 |
|
---|
| 22 | }
|
---|
| 23 |
|
---|
| 24 | // attack the destination planet
|
---|
| 25 | public void attack() {
|
---|
| 26 |
|
---|
| 27 | }
|
---|
| 28 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.