public Wall(int nHealth, int tx, int ty) { m_nHealth = nHealth; m_tx = tx; m_ty = ty; m_gimg = Globals.GetGobImage(s_astrBitmaps[0], false); }
public Scenery(String strName, int tx, int ty) { m_strName = strName; m_tx = tx; m_ty = ty; m_gimg = Globals.GetGobImage(strName, false); }
void Init(int nGx, int tx, int ty) { m_nGx = nGx; m_tx = tx; m_ty = ty; m_gimg = Globals.GetGobImage(s_astrBitmaps[m_nGx], true); }
protected virtual void Init() { m_gimg = Globals.GetGobImage(GetType().Name, true); if (m_gimg == null) { throw new Exception("Cannot find image for gob " + GetType().Name); } }
public Scenery(string strName, string strValue, int txOrigin, int tyOrigin) { Regex re = new Regex(@"^(?<gt>\d+),(?<name>\w+).tbm,(?<tx>\d+),(?<ty>\d+)$"); Match m = re.Match(strValue); m_strName = m.Groups["name"].Value; m_tx = int.Parse(m.Groups["tx"].Value) + txOrigin; m_ty = int.Parse(m.Groups["ty"].Value) + tyOrigin; m_gimg = Globals.GetGobImage(m_strName, false); }
public static GobImage GetGobImage(String strName, bool fTight) { // See if it already exists foreach (GobImage gimg in m_alsGobImages) { if (strName == gimg.Name) { return(gimg); } } // See if it can be loaded GobImage gimgT = GobImage.Load(strName, fTight); if (gimgT != null) { m_alsGobImages.Add(gimgT); } return(gimgT); }
public Wall(int nHealth) { m_nHealth = nHealth; m_gimg = Globals.GetGobImage(s_astrBitmaps[0], false); }
public Galaxite(SerializationInfo info, StreamingContext ctx) : base(info, ctx) { m_nGx = info.GetInt32("nGx"); m_gimg = Globals.GetGobImage(s_astrBitmaps[m_nGx], true); }
public Scenery(SerializationInfo info, StreamingContext ctx) : base(info, ctx) { m_strName = info.GetString("Name"); m_gimg = Globals.GetGobImage(m_strName, false); }
public Wall(SerializationInfo info, StreamingContext ctx) : base(info, ctx) { m_nHealth = info.GetInt32("nHealth"); m_gimg = Globals.GetGobImage(s_astrBitmaps[0], false); }
public Scenery(String strName) { m_strName = strName; m_gimg = Globals.GetGobImage(strName, false); }
protected virtual void Init() { m_gimg = Globals.GetGobImage(GetType().Name, true); if (m_gimg == null) throw new Exception("Cannot find image for gob " + GetType().Name); }