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; } }
public void SetMoveIdle() { MoveType = MOVEMENT_TYPE.M_IDLE; if (speed != 0.0f) { speed = 0.0f; } }
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; }
public void SetMoveJog() { MoveType = MOVEMENT_TYPE.M_JOG; speed = JogSpeed; }
public void SetMoveRun() { MoveType = MOVEMENT_TYPE.M_RUN; speed = RunSpeed; }
public Piece(MOVEMENT_TYPE mtype) { moveType = mtype; completedMove = false; escaped = false; }
public Piece() { moveType = MOVEMENT_TYPE.ADJACENT; completedMove = false; escaped = false; }