|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.DirectX.Direct3D;
using MTV3D65;
namespace gefx
{
public class cUnitManager
{
public List<cUnit> Units = new List<cUnit>();
public void AddUnit(string name, ref gefxs GE)
{
Units.Add(new cUnit(name, ref GE));
}
public void AddUnitMesh(string name ,string MeshPath, ref gefxs GE,cUnit.MeshType Type)
{
foreach (cUnit u in Units)
{
u.AddcUnit(name, Type, MeshPath, ref GE);
}
}
public void DrawUnits(string name)
{
foreach (cUnit u in Units)
{
u.DrawUnit(name);
}
}
public void MoveUnit(string name,TV_3DVECTOR Point)
{
foreach (cUnit u in Units)
{
u.MoveUnit(Point, name);
}
}
public void ScaleUnit(string name, float x, float y, float z)
{
foreach (cUnit u in Units)
{
}
}
public void RotateUnit(string name, float x, float y, float z)
{
foreach (cUnit u in Units)
{
u.RotateUnit(x, y, z, name);
}
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.