Changeset 69f6f01 in galcon-client for src/com/example/helloandroid/Planet.java


Ignore:
Timestamp:
Jun 10, 2010, 3:23:14 AM (14 years ago)
Author:
dportnoy <devnull@…>
Branches:
master
Children:
38ac100
Parents:
647a312
Message:

Added a display of the fleet size, a percentage of the population of the fleet's source planet. Prevented dispatching fleets with the same source and destination planets. The rate at which ships spawn on a planet is now based on the planet radius.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/com/example/helloandroid/Planet.java

    r647a312 r69f6f01  
    132132       
    133133        public void update() {
    134                 //if(faction != 0)
    135                         //numShips++;
     134                if(faction != 0)
     135                        numShips += radius/10;
    136136               
    137137        }
Note: See TracChangeset for help on using the changeset viewer.