Exemplo n.º 1
0
        /*  public override Parameters.DynamicParameters GetParameters()
        {
            return _instanceParameters;
        }*/
        public static CharacterLogicController CreateCharacter(string __nameIsId, GameLevel __level, bool _needMC)
        {
            CharacterParameters parameters = StaticObjects.CharacterParameters[__nameIsId];

            GameCharacter myCharacter = new GameCharacter(parameters._levelObjectName, Matrix.Identity, __level);
            GameSimpleObject myHead = new GameSimpleObject(parameters._headObjectName,  __level, Engine.Logic.PivotObjectDependType.Head, false, false);
            CharacterLogicController result = new CharacterLogicController(__level, myCharacter, myHead, !_needMC);
            result._baseParameters = parameters;
            return result;
        }
Exemplo n.º 2
0
        public CharacterLogicController(GameLevel __level, GameCharacter __hisObject, GameSimpleObject __hisHead, bool __isMe = false)
            : base(__level)
        {
            _hisHead = __hisHead;
            _hisObject = __hisObject;

            _isAlive = false;
            _isMe = __isMe;

            _hisObject._levelObject._needMouseCast = _hisObject._levelObject._needMouseCast && !_isMe;
            _hisHead._object._needMouseCast = _hisHead._object._needMouseCast && !_isMe;
            _hisObject._levelObject._gameObject = this;
        }
Exemplo n.º 3
0
 public static void edgeDeadToAlive(GameCharacter __object)
 {
     //method
       //  __object.SetAlive();
 }
Exemplo n.º 4
0
 public static void edgeAliveToDead(GameCharacter __object)
 {
     //method
        // __object.SetDead();
 }