View Javadoc

1   /*
2    * To change this template, choose Tools | Templates
3    * and open the template in the editor.
4    */
5   
6   package cz.cuni.amis.pogamut.unreal.t3dgenerator.datatypes;
7   
8   import cz.cuni.amis.pogamut.unreal.t3dgenerator.annotations.UnrealDataType;
9   
10  /**
11   * A color in UDK.
12   * @author Martin Cerny
13   */
14  @UnrealDataType
15  public class Color {
16      private int r;
17      private int g;
18      private int b;
19      private int a;
20  
21      public Color(int r, int g, int b, int a) {
22          this.r = r;
23          this.g = g;
24          this.b = b;
25          this.a = a;
26      }
27  
28      public int getA() {
29          return a;
30      }
31  
32      public int getB() {
33          return b;
34      }
35  
36      public int getG() {
37          return g;
38      }
39  
40      public int getR() {
41          return r;
42      }
43  
44      
45  }