1 package org.catacomb.datalish; 2 3 import org.catacomb.be.Placement; 4 5 6 public class SceneConfig { 7 8 9 double time; 10 11 SpritePlacement[] placements; 12 13 SpriteEvents events; 14 15 int count; 16 17 18 public SceneConfig(int nspr) { 19 placements = new SpritePlacement[nspr]; 20 count = 0; 21 } 22 23 public void setTime(double t) { 24 time = t; 25 } 26 27 public SceneConfig(double t, SpritePlacement[] spa, SpriteEvents evts) { 28 time = t; 29 placements = spa; 30 events = evts; 31 } 32 33 34 public double getTime() { 35 return time; 36 } 37 38 39 public void addPlacement(String sid, Placement pmt) { 40 placements[count] = new SpritePlacement(sid, pmt); 41 count += 1; 42 } 43 44 public SpritePlacement[] getPlacements() { 45 return placements; 46 } 47 48 public void setEvents(SpriteEvents sevs) { 49 events = sevs; 50 51 } 52 53 54 public SpriteEvents getEvents() { 55 return events; 56 } 57 58 59 }