public Enemy(Model model, Vector3 Position, float Speed, GraphicsDevice device, camera camera, ModelManager modelManager) : base(model) { this.modelmanager = modelManager; world = Matrix.CreateTranslation(Position); position = Position; speed = Speed; }
//Tank tank; public Shot(Model model, Vector3 Position, Vector3 Direction, float Speed, ModelManager modelManager) : base(model) { this.modelmanager = modelManager; shotPosition = Position; shotDirection = Direction; shotSpeed = Speed; world = Matrix.CreateTranslation(Position); }
public SkyBox(Model model, ModelManager modelManager) : base(model) { this.modelmanager = modelManager; }
/// <summary> /// Allows the game to perform any initialization it needs to before starting to run. /// This is where it can query for any required services and load any non-graphic /// related content. Calling base.Initialize will enumerate through any components /// and initialize them as well. /// </summary> protected override void Initialize() { // TODO: Add your initialization logic here camera = new camera(this, new Vector3(0, 50, 200), new Vector3(0, 0, 0), Vector3.Up); Components.Add(camera); ModelManager = new ModelManager(this); Components.Add(ModelManager); this.IsMouseVisible = true; base.Initialize(); }