java-oop

java-oop Commit Details


Date:2015-02-23 23:43:57 (10 years 1 month ago)
Author:Alden Rose
Branch:master
Commit:94d6563622593d82aa81e861972aa12f6c3c93a9
Parents: 4f6c6d04a0133bb4ce01d8320c94639a86afa412
Message:Starter

Changes:

File differences

project1/src/project1/Map.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package project1;
/**
 *
 * @author Alden
 */
public class Map {
   
    //Base map, contains a grid
    //the two dimensional array allows us to interpret
    // x,y coordinates as the locations in the array.
    private static int ID;
    private static String[][] grid;
   
    public Map(String[][] newMap, int identifier){
        grid = newMap;
        ID = identifier;
    }
    public String toString(){
        return "" + ID;
    }
}

Archive Download the corresponding diff file

Branches

Number of commits:
Page rendered in 0.25285s using 14 queries.