/// <summary> /// Draw Object를 추가 한다. /// </summary> /// <param name="obj"></param> public void AddDrawObbject(DrawObj obj) { if (obj == null) return; DrawObjectList.Add(obj); }
/// <summary> /// type을 받아서 객체 생성 /// </summary> /// <param name="KindObj"></param> public void RealCreateObj(int KindObj, float X2d, float Y2d) { DrawObj NewObj = new DrawObj(dx_Device, KindObj); NewObj.ObjectPosInit(new Vector3(X2d, 0, Y2d)); }
/// <summary> /// Rendering 초기화작업 /// </summary> public void RenderInit() { DrawModelManager = new ModelManager(dx_Device); DrawModelManager.CreateDrawModel(dx_Device, ModelManager.ROBOT, "Robot.dds"); DrawModelManager.CreateDrawModel(dx_Device, ModelManager.HAZARD, "Hazard.jpg"); DrawModelManager.CreateDrawModel(dx_Device, ModelManager.COLOR, "ColorBlob.png"); RobotObj = new DrawObj(dx_Device, ModelManager.ROBOT); //움직임 초기화 RobotMover = new ModelActionController(RobotObj); MainCamera = new Camera(dx_Device); UIState = UI_READY; }
/// <summary> /// 생성자 /// </summary> /// <param name="Unit"></param> public ModelActionController(DrawObj Unit) { ManagedUnit = Unit; ActionBuffer = new Queue<IActionObject>(); MoveCallBack = DefaultMoveFunc; }