internal BattleStateComponent(BattleData data, IBattleState actionState, IBattleState characterSetState, IBattleState executionState, IEventCreator eventCreator) { actionState.CheckNull("actionState"); characterSetState.CheckNull("characterSetState"); executionState.CheckNull("executionState"); eventCreator.CheckNull("eventCreator"); ActionState = actionState; CharacterSetState = characterSetState; ExecutionState = executionState; this.eventCreator = eventCreator; this.data = data; }
public BattleEventProcessor(IGUIService guiService, IBattleGraphicController graphicService, IEventQueue queue, IEventCreator events) { this.guiService = guiService; this.graphicService = graphicService; this.queue = queue; events.CriticalDamage += CriticalDamageHandler; events.HPChanged += HPChangedHandler; events.MoveEffective += MoveEffectiveHandler; events.MoveUsed += MoveUsedHandler; events.NewTurn += NewTurnHandler; events.PokemonChanged += PokemonChangedHandler; events.StatusChanged += StatusChangedHandler; }
public AdminEventFactory() { var creatorTypes = new AssemblyTypeFinder(Assembly.GetExecutingAssembly(), GetType().Namespace + ".Creators") .WithTypeMatcher(new ClassTypeMatcher()) .WithTypeMatcher(new ImplementsTypeMatcher(typeof(IEventCreator))) .Find(); var creators = new IEventCreator[creatorTypes.Count()]; for (int i = 0; i < creators.Length; ++i) { creators[i] = (IEventCreator)Activator.CreateInstance(creatorTypes.ElementAt(i)); } this.creators = creators.ToDictionary(x => x.SupportedMessageType); }
public EventsController(IEventRepository eventRepository, IEventCreator jsonCreator, IEventsManager eventsHandler) { _eventRepository = eventRepository; _jsonCreator = jsonCreator; _eventsHandler = eventsHandler; }
public BattleStateComponent(BattleData data, WaitForActionState actionState, WaitForCharState characterSetState, ExecuteState executionState, IEventCreator eventCreator) : this(data, (IBattleState)actionState, characterSetState, executionState, eventCreator) { }
public WaitForCharState(IEventCreator eventCreator) { this.eventCreator = eventCreator; }
public CommandExecuter(IMoveEffectCalculator calculator, IEventCreator eventCreator) { this.eventCreator = eventCreator; this.calculator = calculator; }