View Javadoc
1   /*
2    * Copyright (c) 2022 Kaiserpfalz EDV-Service, Roland T. Lichti.
3    *
4    * This program is free software: you can redistribute it and/or modify
5    * it under the terms of the GNU General Public License as published by
6    * the Free Software Foundation, either version 3 of the License, or
7    * (at your option) any later version.
8    *
9    * This program is distributed in the hope that it will be useful,
10   * but WITHOUT ANY WARRANTY; without even the implied warranty of
11   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12   * GNU General Public License for more details.
13   *
14   * You should have received a copy of the GNU General Public License
15   * along with this program.  If not, see <https://www.gnu.org/licenses/>.
16   */
17  
18  package de.kaiserpfalzedv.rpg.torg.model.core;
19  
20  import com.fasterxml.jackson.annotation.JsonInclude;
21  import lombok.*;
22  import lombok.extern.jackson.Jacksonized;
23  import org.eclipse.microprofile.openapi.annotations.media.Schema;
24  
25  /**
26   * AttackPower -- A power usage instead of an attack.
27   *
28   * @author klenkes74 {@literal <rlichti@kaiserpfalz-edv.de>}
29   * @since 1.2.0  2021-05-23
30   */
31  @Jacksonized
32  @Builder(toBuilder = true)
33  @AllArgsConstructor
34  @Getter
35  @ToString
36  @EqualsAndHashCode
37  @JsonInclude(JsonInclude.Include.NON_ABSENT)
38  public class AttackPower {
39      @Schema(description = "Casting time of this power.", nullable = true)
40      private final String castingTime;
41  
42      @Schema(description = "Duration of the power effects.", nullable = true)
43      private final String duration;
44  
45      @Schema(description = "DN for this power")
46      @Builder.Default
47      private final AttackPowerTarget dn = AttackPowerTarget.DefaultAttack;
48  
49      @Schema(description = "Description of the possible results.")
50      private final Success success;
51  }