I would like to create 2 lists, in which the first one should contain rectangles and the other some kind of objects.
For example:
List
List
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
VulpesRank #55 · 29.2K reputationPosted Mar 29, 2011, 3:23 AM EDT
if (something)
{
rec = new Rectangle(x,y,width,height);
recs.Add(rec);
obj = new Object(rec, Content.Load
objs.Add(obj);
}
VulpesRank #55 · 29.2K reputationPosted Mar 29, 2011, 2:54 AM EDT
Steve Tsiki42 reputationPosted Mar 29, 2011, 3:09 AM EDT
The class is as follows:
Steve Tsiki42 reputationPosted Mar 29, 2011, 3:28 AM EDT