Changeset 379005b in advance-wars


Ignore:
Timestamp:
Jun 6, 2011, 4:40:18 PM (13 years ago)
Author:
dportnoy <devnull@…>
Branches:
master
Children:
b660017
Parents:
bdd63ba
Message:

Moved all the enums to an Enum.java file.

Location:
src/com/medievaltech/advancewars
Files:
2 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • src/com/medievaltech/advancewars/Game.java

    rbdd63ba r379005b  
    22
    33import java.io.*;
    4 
    5 import com.medievaltech.advancewars.GameView.DrawingThread;
    64
    75import android.app.Activity;
     
    1311import android.widget.TextView;
    1412
     13import com.medievaltech.advancewars.GameView.*;
     14import com.medievaltech.advancewars.Enum.*;
     15
    1516public class Game extends Activity {
    1617        private static final int MENU_SAVE = 1;
    1718        private static final int MENU_MAIN = 2;
    1819    private static final int MENU_EXIT = 3;
    19    
    20     public enum State{BUST, ACTIVE, DOUBLEDOWN};
    2120
    2221    /** A handle to the thread that's actually running the animation. */
  • src/com/medievaltech/advancewars/GameView.java

    rbdd63ba r379005b  
    33import java.io.*;
    44
    5 import com.medievaltech.advancewars.Tile.TerrainType;
     5import com.medievaltech.advancewars.Enum.*;
    66import com.medievaltech.unit.*;
    77import com.medievaltech.gui.*;
     
    2020        public AppState mAppState;
    2121        public GameState mGameState;
    22 
    23         /*
    24          * UI constants (i.e. the speed & fuel bars)
    25          */
    26         public static final int UI_BAR = 100; // width of the bar(s)
    27         public static final int UI_BAR_HEIGHT = 10; // height of the bar(s)
    2822
    2923        /*
  • src/com/medievaltech/advancewars/Map.java

    rbdd63ba r379005b  
    33import java.io.*;
    44
     5import android.graphics.*;
     6
    57import com.medievaltech.unit.Unit;
    6 
    7 
    8 import android.graphics.*;
    98
    109public class Map {
  • src/com/medievaltech/advancewars/Tile.java

    rbdd63ba r379005b  
    11package com.medievaltech.advancewars;
    2 
    3 import com.medievaltech.unit.Unit;
    42
    53import android.graphics.Canvas;
     
    75import android.graphics.Point;
    86
     7import com.medievaltech.unit.*;
     8import com.medievaltech.advancewars.Enum.*;
     9
    910public class Tile {
    10         public enum TerrainType
    11         {
    12                 LAND, SEA
    13         }
    14        
    1511        TerrainType type;
    1612        public double moveCoefficent;
Note: See TracChangeset for help on using the changeset viewer.