protected GameObjectManager(IPostOffice postOffice, IScriptController scriptController) { m_ModuleID = Constant.enumModuleID.GAMEOBJECTMANAGER; m_PostOffice = postOffice; m_ScriptController = scriptController; m_GameObjectList = new Dictionary <String, IGameObject>(); m_MsgTypeArray = new Constant.enumMessage[] { Constant.enumMessage.INITIALISE, Constant.enumMessage.UPDATE, Constant.enumMessage.DRAW, Constant.enumMessage.SYNC_POSITIONDATA, Constant.enumMessage.CREATE_OBJECTS, Constant.enumMessage.ADD_COMPONENTS_TO_OBJECT, Constant.enumMessage.ADD_SCRIPT_TO_OBJECT, Constant.enumMessage.GET_COLLISIONDETECTIONDATA, Constant.enumMessage.GET_POSITION_COMPONENTS, Constant.enumMessage.GET_COMPONENTS, Constant.enumMessage.GET_GAMEOBJECT, Constant.enumMessage.GET_GAMEOBJECTCOMPONENTS, Constant.enumMessage.GET_GAMEOBJECTKEY_BY_ID, Constant.enumMessage.GET_GAMEOBJECTCOMPONENTS_BY_ID, }; //m_Components = new List<IComponent>(); }
public static AIAgent Instance(IPostOffice postOff) { if (m_Instance == null) { m_Instance = new AIAgent(postOff); } return(m_Instance); }
public static AIAgent Instance(IPostOffice postOff) { if (m_Instance == null) { m_Instance = new AIAgent(postOff); } return m_Instance; }
public static GameObjectManager Instance(IPostOffice postOffice, IScriptController scriptController) { if (m_Instance == null) { m_Instance = new GameObjectManager(postOffice, scriptController); } return(m_Instance); }
public static Physics Instance(IPostOffice postOffice) { if (m_Instance == null) { m_Instance = new Physics(postOffice); } return(m_Instance); }
public static Physics Instance(IPostOffice postOffice) { if (m_Instance == null) { m_Instance = new Physics(postOffice); } return m_Instance; }
public UnenrolInBlockHandler( IRepository <User> userRepository, IBlockEnrolmentService blockEnrolmentService, IPostOffice postOffice) { _userRepository = userRepository; _blockEnrolmentService = blockEnrolmentService; _postOffice = postOffice; }
public static SFMLInput Instance(IPostOffice postOffice) { if (m_Instance == null) { m_Instance = new SFMLInput(postOffice); } return(m_Instance); }
protected AIAgent(IPostOffice postOff) { m_PostOffice = postOff; m_ModuleID = Constant.enumModuleID.AI; m_MsgTypeArray = new Constant.enumMessage[] { Constant.enumMessage.INITIALISE, Constant.enumMessage.UPDATE, }; }
/// <summary> /// Initializes a new instance of the <see cref="AuthZeroEmailService"/> class. /// </summary> /// <param name="emailVerificationRepository">The email verification repository.</param> /// <param name="postOffice">The post office.</param> /// <param name="repository">The repository.</param> /// <param name="appSettings">The application settings.</param> public AuthZeroEmailService( IAuthZeroEmailVerificationRepository emailVerificationRepository, IPostOffice postOffice, IRepository <User> repository, IAppSettings appSettings) { _emailVerificationRepository = emailVerificationRepository; _postOffice = postOffice; _repository = repository; _appSettings = appSettings; }
public static ScriptController Instance(IPostOffice postOffice) { if (m_Instance == null) { m_Instance = new ScriptController(postOffice); } else { } return(m_Instance); }
protected Physics(IPostOffice postOffice) { collisions = new Dictionary <int, List <int> >(); m_ModuleID = Constant.enumModuleID.PHYSICS; m_PostOffice = postOffice; m_MsgTypeArray = new Constant.enumMessage[] { Constant.enumMessage.UPDATE, Constant.enumMessage.INITIALISE, Constant.enumMessage.SEND_COLLISIONDETECTIONDATA, Constant.enumMessage.SEND_POSITIONCOMPONENTS, Constant.enumMessage.SEND_COMPONENTS, Constant.enumMessage.COLLISIONDETECTION, }; }
public void PostOffice_Notify_CallSubscribersUpdate() { IPostOffice postOffice = new PostOffice(); IPostOffice postValue = null; var yokoMock = new Mock <Subscriber>("Yoko"); yokoMock.Setup(x => x.Update(It.IsAny <IPostOffice>())).Callback <IPostOffice>(office => postValue = office); postOffice.AttachSubscriber(yokoMock.Object); ILetter letter = new Letter(from: "John", to: "Yoko"); postOffice.Receive(letter); yokoMock.Verify(x => x.Update(postOffice), Times.Once); Assert.Same(postValue, postOffice); }
protected Physics(IPostOffice postOffice) { collisions = new Dictionary<int, List<int>>(); m_ModuleID = Constant.enumModuleID.PHYSICS; m_PostOffice = postOffice; m_MsgTypeArray= new Constant.enumMessage[] { Constant.enumMessage.UPDATE, Constant.enumMessage.INITIALISE, Constant.enumMessage.SEND_COLLISIONDETECTIONDATA, Constant.enumMessage.SEND_POSITIONCOMPONENTS, Constant.enumMessage.SEND_COMPONENTS, Constant.enumMessage.COLLISIONDETECTION, }; }
protected ScriptController(IPostOffice postOffice) { m_ModuleID = Constant.enumModuleID.SCRIPTCONTROLLER; m_PostOffice = postOffice; m_MsgTypeArray = new Constant.enumMessage[] { Constant.enumMessage.UPDATE, Constant.enumMessage.INITIALISE, Constant.enumMessage.DRAW, Constant.enumMessage.COLLISIONDETECTION, Constant.enumMessage.SEND_GAMEOBJECT, }; m_TempMsgTypeList = new List <Constant.enumMessage>(); m_GameObjectIdList = new List <int>(); scriptList = new List <IScript>(); }
protected SFMLInput(IPostOffice postOffice) : this() { m_PostOffice = postOffice; }
public SFMLGraphics2D(IPostOffice pOff) : this() { m_PostOffice = pOff; }
public static SFMLInput Instance(IPostOffice postOffice) { if (m_Instance == null) { m_Instance = new SFMLInput(postOffice); } return m_Instance; }
public virtual void Update(IPostOffice postOffice) { Console.WriteLine($"{postOffice.GetLetter().ToString()}"); }