Beispiel #1
0
 public Sat(ISat iSat, IRepositorioBase repositorio, Parametros parametros, Entity.Venda venda = null)
 {
     _sat         = iSat;
     _repositorio = repositorio;
     _parametros  = parametros;
     _venda       = venda;
 }
        /// <summary>
        /// CONSTRUCTOR for class CollisionManager
        /// </summary>
        public CollisionManager(SceneEntitiesDelegate pSceneGraph, SceneEntitiesDelegate pStatics, IQuadTree <IShape> pQuadTree)
        {
            // SET _sceneGraphEntities delegat to the delegate passed into the
            // constructor
            _sceneGraphEntities = pSceneGraph;
            // SET QuadTree to the QuadTree variable passed into the constructor
            QuadTree = pQuadTree;
            // SET _sat as a new type of SAT
            _sat = new SAT();

            _staticEntities = pStatics;

            QuadTree.SetDelegate(CheckEntityCollisions);
        }