public void SetActorName(int id, string actorName, int posX, int posY, ScenarionActorPivotType scenarioActorPivotType)
    {
        name = id.ToString();
        string pivot = "";

        switch (scenarioActorPivotType)
        {
        case ScenarionActorPivotType.Right:
            pivot = "R";
            break;

        case ScenarionActorPivotType.UpRight:
            pivot = "UR";
            break;

        case ScenarionActorPivotType.UpLeft:
            pivot = "UL";
            break;

        case ScenarionActorPivotType.Left:
            pivot = "L";
            break;

        case ScenarionActorPivotType.DownLeft:
            pivot = "DL";
            break;

        case ScenarionActorPivotType.DownRight:
            pivot = "DR";
            break;
        }
        ActorName.text = string.Format("{0} ({1},{2}) {3}", actorName, posX, posY, pivot);
    }
Exemple #2
0
 public PlayerRecord(int id, int locX, int locY, int characterId, ScenarionActorPivotType scenarioActorPivotType)
 {
     this.id                      = id;
     this.locX                    = locX;
     this.locY                    = locY;
     this.characterId             = characterId;
     this.scenarionActorPivotType = scenarioActorPivotType;
     levelId                      = 0;
 }
Exemple #3
0
 public ScenarionAction(int scenarioActionId, int actorId, HexCoord targetMoveTile, ScenarionActorPivotType actorPivot, float waitTime, float waitTimeDark, bool isToDark, bool isToLight)
 {
     scenarionActionType   = ScenarionActionType.ControlActor;
     this.scenarioActionId = scenarioActionId;
     this.actorId          = actorId;
     this.targetMoveTile   = targetMoveTile;
     this.actorPivot       = actorPivot;
     this.waitTime         = waitTime;
     this.waitTimeDark     = waitTimeDark;
     this.isToDark         = isToDark;
     this.isToLight        = isToLight;
 }
    public Player MoveActorToTarget(int actorId, HexCoord hex, ScenarionActorPivotType pivotType)
    {
        Player player = GetActorPlayerByID(actorId);

        player.SetHexTarget(hex);
        player.SetPivot(pivotType);
        if (!player.m_Hex.Equals(hex))
        {
            player.SetPositionQueue(GameMidiator.m_Instance.m_StageMapManager.FindPath(player.m_Hex, hex, true));
            return(player);
        }
        player.SetPivot();
        return(null);
    }
Exemple #5
0
 public void SetPivot(ScenarionActorPivotType scenarioActorPivotType)
 {
     m_PlayerPivot = scenarioActorPivotType;
 }