Newer
Older
CactusServer / src / main / java / framework / RWT / RWTVirtualKey.java
y-ota on 10 May 2018 765 bytes 初うp
  1. package framework.RWT;
  2.  
  3.  
  4. public class RWTVirtualKey {
  5.  
  6. private int player;
  7. private int physicalKey;
  8. private int virtualKey;
  9.  
  10. public RWTVirtualKey(int player, int physicalKey, int virtualKey){
  11. setPlayer(player);
  12. setPhysicalKey(physicalKey);
  13. setVirtualKey(virtualKey);
  14. }
  15.  
  16. public void setPlayer(int player) {
  17. this.player = player;
  18. }
  19.  
  20. public int getPlayer() {
  21. return player;
  22. }
  23.  
  24. public void setPhysicalKey(int physicalKey) {
  25. this.physicalKey = physicalKey;
  26. }
  27.  
  28. public int getPhysicalKey() {
  29. return physicalKey;
  30. }
  31.  
  32. public void setVirtualKey(int virtualKey) {
  33. this.virtualKey = virtualKey;
  34. }
  35.  
  36. public int getVirtualKey() {
  37. return virtualKey;
  38. }
  39.  
  40. public void assignPlayer(int playernum) {
  41. }
  42. }