public void AddObject(WorldObject obj)
{
this.allObjects.Add(obj);
IControllable objAsControllable = obj as IControllable;
if (objAsControllable != null)
{
this.controllables.Add(objAsControllable);
}
IResource objAsResource = obj as IResource;
if (objAsResource != null)
{
this.resources.Add(objAsResource);
}
//IGatherer objAsGatherer = obj as IGatherer;
//if (objAsGatherer != null)
//{
// this.gatherers.Add(objAsGatherer);
//}
//IFighter objAsFighter = obj as IFighter;
//if (objAsFighter != null)
//{
// this.fighters.Add(objAsFighter);
//}
}