tile animation: animation is now controlled by tiles.rc
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@732 d9718cc8-9f43-0410-858b-315f434eb58c
This commit is contained in:
parent
8d940ec99d
commit
3859ca16d7
5 changed files with 65 additions and 113 deletions
|
@ -4,18 +4,21 @@ import java.util.*;
|
|||
|
||||
public class TileSpec
|
||||
{
|
||||
int tileNumber;
|
||||
TileSpec animNext;
|
||||
Map<String,String> attributes;
|
||||
List<String> images;
|
||||
|
||||
protected TileSpec()
|
||||
protected TileSpec(int tileNumber)
|
||||
{
|
||||
this.tileNumber = tileNumber;
|
||||
this.attributes = new HashMap<String,String>();
|
||||
this.images = new ArrayList<String>();
|
||||
}
|
||||
|
||||
public static TileSpec parse(String inStr)
|
||||
public static TileSpec parse(int tileNumber, String inStr)
|
||||
{
|
||||
TileSpec ts = new TileSpec();
|
||||
TileSpec ts = new TileSpec(tileNumber);
|
||||
ts.load(inStr);
|
||||
return ts;
|
||||
}
|
||||
|
|
Reference in a new issue