Package kku.cs.fgl

Examples of kku.cs.fgl.SpriteCell


    @Override
    public void paint(Graphics g) {
        for (int i = 0; i < map.length; i++) {
            for (int j = 0; j < map[i].length; j++) {
                if (map[i][j] >= 0) {
                    SpriteCell cell = sheet.getCell(map[i][j]);
                    int x = j * tw;
                    int y = i * th;
                    bg.paint(g, x, y, null);
                    if (cell != null) {
                        cell.paint(g, x, y, null);
                    }
                }
            }
        }
    }
View Full Code Here


      return (SpriteCell)frames.get(no);
    }
    return null;
  }
  public int add(SpriteSheet sheet,int cellNo){
    SpriteCell c=sheet.getCell(cellNo);
    frames.add(c);
    return frames.size();
  }
View Full Code Here

    String v[]=cellList.split(",");
    for(int i=0;i<v.length;i++){
      if(v[i].length()==0) continue;
      try{
      int cellNo = Integer.parseInt(v[i]);     
      SpriteCell c=sheet.getCell(cellNo);
      frames.add(c);
      }catch(Exception e){}
    }   
  }
View Full Code Here

TOP

Related Classes of kku.cs.fgl.SpriteCell

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.