MCPcopy Create free account
hub / github.com/catabriga/graphwar / addChat

Method addChat

src/Graphwar/PreGameScreen.java:450–463  ·  view source on GitHub ↗
(Player player, String chatMessage)

Source from the content-addressed store, hash-verified

448 }
449
450 public void addChat(Player player, String chatMessage)
451 {
452 String name = null;
453 Color color = null;
454
455 if(player!=null)
456 {
457 name = player.getName();
458 color = player.getColor();
459 }
460
461 chatBox.addText(name, color, chatMessage);
462 this.repaint();
463 }
464
465 public void paintComponent(Graphics g)
466 {

Callers

nothing calls this directly

Calls 3

getColorMethod · 0.80
addTextMethod · 0.80
getNameMethod · 0.45

Tested by

no test coverage detected