Starsector API
Loading...
Searching...
No Matches
FullName.java
Go to the documentation of this file.
1package com.fs.starfarer.api.characters;
2
3public class FullName {
4
5 public static enum Gender{
6 MALE,
7 FEMALE,
8 ANY,
9 }
10
11 private String first, last;
12 private Gender gender;
13
14 public FullName(String first, String last, Gender gender) {
15 this.first = first;
16 this.last = last;
17 this.gender = gender;
18 }
19 public Gender getGender() {
20 return gender;
21 }
22 public void setGender(Gender gender) {
23 this.gender = gender;
24 }
25 public String getFirst() {
26 return first;
27 }
28 public void setFirst(String first) {
29 this.first = first;
30 }
31 public String getLast() {
32 return last;
33 }
34 public void setLast(String last) {
35 this.last = last;
36 }
37 public String getFullName() {
38 return (first + " " + last).trim();
39 }
40}
FullName(String first, String last, Gender gender)
Definition FullName.java:14