コード例 #1
0
ファイル: types.cs プロジェクト: mrpossoms/AnimoNex
 public character(string Name, Vector2 Position, skill Skill, ControlType CType, CharType type)
 {
     controlType = CType;
     action = "idle";
     special_tag = -1;
     Type = type;
     name = Name;
     B_baseProps = new Base(Position, 70f);
     f_currentFrame = 0;
     body = null;
     currentAnim = new Animation();
     angle = 0;
     accuracy = 1;
     attrib = Skill;
     armor = 0;
     pointingRight = true;
     Primary_weap = Secondary_weap = SideArm_weap = current_weap = new weapon();
     Inventory = new inventory(5, null);
     weaponInUse = "unarmed";
     brain = new AInode(false);
     reordered = false;
 }
コード例 #2
0
ファイル: AIfunc.cs プロジェクト: mrpossoms/AnimoNex
        private static bool timeWaited(AInode brain, int time)
        {
            bool output = false;

            if ((Game1.time_ticks - brain.tick_last) >= time)
            {
                output = true;
            }
            return output;
        }