AxiosEngine-old 

AxiosEngine-old Mercurial Source Tree


Root/axios/Engine/ComplexAxiosGameObject.cs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FarseerPhysics.Dynamics;
using Microsoft.Xna.Framework;
 
using Axios.Engine;
using Axios.Engine.Interfaces;
using FarseerPhysics.SamplesFramework;
 
namespace Axios.Engine
{
 
    public abstract class ComplexAxiosGameObject : AxiosGameObject
    {
 
        public List<SimpleAxiosGameObject> GameObjects;
 
        public ComplexAxiosGameObject()
        {
 
        }
 
        public override void LoadContent(AxiosGameScreen gameScreen)
        {
            base.LoadContent(gameScreen);
 
            CreateObjects(gameScreen);
 
            foreach (SimpleAxiosGameObject obj in GameObjects)
            {
                gameScreen.AddGameObject(obj);
            }
 
        }
 
        protected override void OnRemove(AxiosGameObject gameObject)
        {
            base.OnRemove(gameObject);
 
            foreach (SimpleAxiosGameObject g in GameObjects)
                g.Remove();
        }
 
        public abstract void CreateObjects(AxiosGameScreen gameScreen);
    }
 
}
Source at commit b5444bca056e created 12 years 5 months ago.
By Nathan Adams, * - Starting work on AxiosCSV

Archive Download this file

Page rendered in 0.89427s using 11 queries.