source: galcon-client/src/com/example/helloandroid/Fleet.java@ 159eef8

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

Created basic interfaces for Fleet and Planet.

  • Property mode set to 100644
File size: 485 bytes
RevLine 
[159eef8]1package com.example.helloandroid;
2
3public 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.