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

Method sendFunction

src/Graphwar/ComputerPlayer.java:445–462  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

443 }
444
445 private void sendFunction()
446 {
447 function = bestFunction[this.currentTurnSoldier].function.simplifyFunction().getStringFunction();
448 bestAngle = bestFunction[this.currentTurnSoldier].angle;
449
450 //System.out.println(this.getName()+":");
451 //System.out.println(bestFunction[this.currentTurnSoldier].function.getStringFunction());
452 //System.out.println(function);
453
454 graphwar.getGameData().setAngle(bestAngle);
455 graphwar.getGameData().sendFunction(function);
456
457 //if(sayFunc)
458 //{
459 // graphwar.getGameData().sendChatMessage(this, function);
460 //}
461
462 }
463
464}

Callers 1

runMethod · 0.95

Calls 4

getStringFunctionMethod · 0.80
simplifyFunctionMethod · 0.80
getGameDataMethod · 0.80
setAngleMethod · 0.45

Tested by

no test coverage detected