Ejemplo n.º 1
0
        public LocalPlayer(IWorldLocator worldlocator, IGameObjectsRepository repository)
        {
            this.worldlocator = worldlocator;

            var obj = repository.CreateGameObject();

            RobotPlayerPart = obj.GetComponent <RobotPlayerPart>();
        }
Ejemplo n.º 2
0
 public RobotPlayerNormalMovementPart(IUserMovementInput movementInput, ISimulationEngine simulationEngine, IWorldLocator worldLocator, IPositionComponent physical, BasicPhysicsPart physics)
 {
     MovementInput    = movementInput;
     SimulationEngine = simulationEngine;
     WorldLocator     = worldLocator;
     Physical         = physical;
     Physics          = physics;
 }
Ejemplo n.º 3
0
 public PlayerRobotSimulator(CustomCamera camera,
                             IWorldLocator worldLocator,
                             PrototypeObjectsFactory prototypeObjectsFactory,
                             LocalPlayer localPlayer,
                             RobotInventoryTextView view)
 {
     this.localPlayer        = localPlayer;
     this.view               = view;
     Camera                  = camera;
     WorldLocator            = worldLocator;
     PrototypeObjectsFactory = prototypeObjectsFactory;
     setupRobot();
     robot = localPlayer.RobotPlayerPart;
 }
 public EnemyBehaviourFactory(EnemyBrain brain,
                              ISimulationEngine simulationEngine,
                              IWorldLocator worldLocator,
                              TraderPart.IItemFactory itemFactory,
                              Random random,
                              IPositionComponent physical)
 {
     this.Brain       = brain;
     SimulationEngine = simulationEngine;
     WorldLocator     = worldLocator;
     ItemFactory      = itemFactory;
     Random           = random;
     Physical         = physical;
 }
Ejemplo n.º 5
0
        public RobotPlayerPart(IWorldLocator worldLocator,
                               RobotPlayerNormalMovementPart normalMovement,
                               ISimulationEngine simulationEngine,
                               PrototypeObjectsFactory prototypeObjectsFactory,
                               IMeshRenderComponent meshRenderComponent,
                               IPositionComponent physical)
        {
            WorldLocator            = worldLocator;
            NormalMovement          = normalMovement;
            SimulationEngine        = simulationEngine;
            PrototypeObjectsFactory = prototypeObjectsFactory;
            MeshRenderComponent     = meshRenderComponent;
            Physical = physical;

            Items  = new List <ItemPart>();
            Health = 100;
        }
 public FindClosestResourceBehaviour(EnemyBrain brain, IWorldLocator locator, float range)
 {
     this.brain   = brain;
     this.locator = locator;
     this.range   = range;
 }
 public FindTargetBehaviour(EnemyBrain brain, IWorldLocator locator)
 {
     this.brain   = brain;
     this.locator = locator;
 }