Esempio n. 1
0
		public virtual void RegisterObject(AbstractGameObject GameObject, bool Drawable)
		{
			RegisterUpdatableObject(GameObject);

			if (Drawable)
			{
				RegisterDrawableObject(GameObject);
			}
		}
Esempio n. 2
0
		public override void RegisterObject(AbstractGameObject GameObject, bool Drawable)
		{
			base.RegisterObject(GameObject, Drawable);

			if (GameObject.GetType().IsSubclassOf(typeof(Unit)))
			{
				units.Add(GameObject as Unit);
			}
			else if (GameObject.GetType().IsSubclassOf(typeof(Building)))
			{
				buildings.Add(GameObject as Building);
			}
		}
Esempio n. 3
0
		public virtual void RegisterDrawableObject(AbstractGameObject GameObject)
		{
			drawableObjects.Add(GameObject);
		}
Esempio n. 4
0
		public virtual void RegisterUpdatableObject(AbstractGameObject GameObject)
		{
			updatableObjects.Add(GameObject);
		}