Changes in src/com/example/helloandroid/Planet.java [04a9a00:69f6f01] in galcon-client
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/com/example/helloandroid/Planet.java
r04a9a00 r69f6f01 11 11 public class Planet { 12 12 int radius; 13 int regenRate; // ships per second 13 14 private int x; 14 15 private int y; … … 17 18 boolean selected; 18 19 private Bitmap selection; 19 private int frameCount, framesUntilSpawn;20 20 21 21 public Planet(int radius, int x, int y) { … … 27 27 selected = false; 28 28 29 frameCount = 0; 30 framesUntilSpawn = 100/radius; 29 regenRate = 0; //change this to some expression / funcion call 31 30 32 31 int size = getRadius()+15; … … 133 132 134 133 public void update() { 135 if(faction != 0) { 136 frameCount++; 137 138 if(frameCount == framesUntilSpawn) { 139 frameCount = 0; 140 numShips++; 141 } 142 } 134 if(faction != 0) 135 numShips += radius/10; 136 143 137 } 144 138
Note:
See TracChangeset
for help on using the changeset viewer.