Esempio n. 1
0
    void MovementTypeStats(MOVEMENT_TYPE _type)
    {
        switch (_type)
        {
        case MOVEMENT_TYPE.PIE:
        {
            baseMovementRange = 2;
        }
        break;

        case MOVEMENT_TYPE.PARKOUR:
        {
            baseMovementRange = 2;
        }
        break;

        case MOVEMENT_TYPE.FLYER:
        {
            baseMovementRange = 2;
        }
        break;

        case MOVEMENT_TYPE.MOTO:
        {
            baseMovementRange = 3;
        }
        break;
        }
    }
Esempio n. 2
0
 public void SetMoveIdle()
 {
     MoveType = MOVEMENT_TYPE.M_IDLE;
     if (speed != 0.0f)
     {
         speed = 0.0f;
     }
 }
Esempio n. 3
0
 public SpeciesPhysicalStats(Creature parent, MOVEMENT_TYPE movementType, int size, int growth, int insulation,
                             int amountOfFoodRequried, int speed, int reproductionRate, int gestationTime, int numberPerBirth,
                             int typicalMaxAge, int updateEvery, float distanceFromTargetBeforeConsideredReached, int needsSleepAfter)
 {
     this.creature             = parent;
     this.size                 = size;
     this.growth               = growth;
     this.insulation           = insulation;
     this.amountOfFoodRequired = amountOfFoodRequried;
     this.speed                = speed;
     this.movementType         = movementType;
     this.reproductionRate     = reproductionRate;
     this.gestationTime        = gestationTime;
     this.numberPerBirth       = numberPerBirth;
     this.typicalMaxAge        = typicalMaxAge;
     this.updateEvery          = updateEvery;
     this.distanceFromTargetBeforeConsideredReached = distanceFromTargetBeforeConsideredReached;
     this.needsSleepAfterInSeconds = needsSleepAfter;
 }
Esempio n. 4
0
 public void SetMoveJog()
 {
     MoveType = MOVEMENT_TYPE.M_JOG;
     speed    = JogSpeed;
 }
Esempio n. 5
0
 public void SetMoveRun()
 {
     MoveType = MOVEMENT_TYPE.M_RUN;
     speed    = RunSpeed;
 }
Esempio n. 6
0
 public Piece(MOVEMENT_TYPE mtype)
 {
     moveType      = mtype;
     completedMove = false;
     escaped       = false;
 }
Esempio n. 7
0
 public Piece()
 {
     moveType      = MOVEMENT_TYPE.ADJACENT;
     completedMove = false;
     escaped       = false;
 }