Esempio n. 1
0
        public Character(Vector2 newLoc, CharDef newCharDef, int newId, int newTeam)
        {
            Location   = newLoc;
            Trajectory = Vector2.Zero;

            Face     = CharDir.Right;
            Scale    = 0.5f;
            _charDef = newCharDef;
            Id       = newId;
            Team     = newTeam;
            _script  = new Script(this);

            Ai = null;
            InitScript();
            Ethereal = false;
            AnimName = "";
            State    = CharState.Air;
            SetAnim("fly");
        }
Esempio n. 2
0
        public Character(Vector2 newLoc, CharDef newCharDef, int newId, int newTeam)
        {
            Location = newLoc;
            Trajectory = Vector2.Zero;

            Face = CharDir.Right;
            Scale = 0.5f;
            _charDef = newCharDef;
            Id = newId;
            Team = newTeam;
            _script = new Script(this);

            Ai = null;
            InitScript();
            Ethereal = false;
            AnimName = "";
            State = CharState.Air;
            SetAnim("fly");
        }