Example #1
0
    private void MakeFSM()
    {
        fsm = new FsmSystem <StateID>();
        NormalMove crawl = new NormalMove(this);

        fsm.addState(StateID.CRAWL, crawl);

        StealMode steal = new StealMode(this);

        fsm.addState(StateID.STEAL, steal);

        fsm.init(StateID.CRAWL);
    }
Example #2
0
 internal void StartScript(string target, string shopName, short x, short y, short fh, StealMode mode, ShopType shopType)
 {
     client.StartScript(target, shopName, x, y, fh, mode, shopType);
 }
Example #3
0
        //TODO: This shouldn't be in client
        internal void StartScript(string target, string shopName, short x, short y, short fh, StealMode mode, ShopType shopType)
        {
            //change to w.e you wanted? not exactly sure.. :D
            var script = ScriptManager.Get <SpotStealer>();

            script.Target   = target;
            script.ShopName = shopName;
            script.X        = x;
            script.Y        = y;
            script.Fh       = fh;
            script.Mode     = mode;
            script.Type     = shopType;
            ScriptManager.Get <SpotStealer>().Start();
        }