コード例 #1
0
ファイル: ActorBase.cs プロジェクト: mengtest/demo_tankWar3D
 protected void InitCommands()
 {
     m_CommandReceiver = new CommandReceiver();
     m_CommandReceiver.AddCommand <IdleCommand>(CommandType.Idle, CheckIdle);
     m_CommandReceiver.AddCommand <AutoMoveCommand>(CommandType.Runto, CheckRunTo);
     m_CommandReceiver.AddCommand <UseSkillCommand>(CommandType.Useskill, CheckUseSkill);
     m_CommandReceiver.AddCommand <DeadCommand>(CommandType.Dead, CheckDead);
     m_CommandReceiver.AddCommand <TurnToCommand>(CommandType.TurnTo, CheckTurnTo);
     m_CommandReceiver.AddCommand <MoveCommand>(CommandType.Moveto, CheckMoveTo);
     m_CommandReceiver.AddCommand <TalkCommand>(CommandType.Talk, CheckTalk);
     m_CommandReceiver.AddCommand <FrostCommand>(CommandType.Frost, CheckFrost);
     m_CommandReceiver.AddCommand <StunCommand>(CommandType.Stun, CheckStun);
     m_CommandReceiver.AddCommand <PalsyCommand>(CommandType.Palsy, CheckPalsy);
     m_CommandReceiver.AddCommand <SleepCommand>(CommandType.Sleep, CheckSleep);
     m_CommandReceiver.AddCommand <BlindCommand>(CommandType.Blind, CheckBlind);
     m_CommandReceiver.AddCommand <FearCommand>(CommandType.Fear, CheckFear);
     m_CommandReceiver.AddCommand <FixBodyCommand>(CommandType.Fixbody, CheckFixBody);
     m_CommandReceiver.AddCommand <WoundCommand>(CommandType.Wound, CheckWound);
     m_CommandReceiver.AddCommand <BeatDownCommand>(CommandType.Beatdown, CheckBeatDown);
     m_CommandReceiver.AddCommand <BeatBackCommand>(CommandType.Beatback, CheckBeatBack);
     m_CommandReceiver.AddCommand <BeatFlyCommand>(CommandType.Beatfly, CheckBeatFly);
     m_CommandReceiver.AddCommand <FlyCommand>(CommandType.Fly, CheckFly);
     m_CommandReceiver.AddCommand <HookCommand>(CommandType.Hook, CheckHook);
     m_CommandReceiver.AddCommand <GrabCommand>(CommandType.Grab, CheckGrab);
     m_CommandReceiver.AddCommand <VariationCommand>(CommandType.Variation, CheckVariation);
     m_CommandReceiver.AddCommand <RideCommand>(CommandType.Ride, CheckRide);
     m_CommandReceiver.AddCommand <JumpCommand>(CommandType.Jump, CheckJump);
     m_CommandReceiver.AddCommand <StealthCommand>(CommandType.Stealth, CheckStealth);
     m_CommandReceiver.AddCommand <RebornCommand>(CommandType.Reborn, CheckReborn);
     m_CommandReceiver.AddCommand <CollectMineCommand>(CommandType.Mine, CheckMine);
     m_CommandReceiver.AddCommand <InteractiveCommand>(CommandType.Interactive, CheckInteractive);
 }
コード例 #2
0
 protected void InitCommands()
 {
     m_CommandReceiver = new CommandReceiver();
     m_CommandReceiver.AddCommand <IdleCommand>(CommandType.Idle, CheckIdle);
     m_CommandReceiver.AddCommand <MoveCommand>(CommandType.Moveto, CheckRunTo);
 }