Beispiel #1
0
  public void attachToCharacter(CInfluenceInterface targetInterface) {
    this.targetInterface = targetInterface;
    targetInterface.addBuff(this);

    CmdBuff buffCommand = generateBuffCommand(true);
    if (buffCommand != null) {
      Spatial spatial = targetInterface.getSpatial();
      spatial
          .getControl(CEntityVariable.class)
          .getAwareness()
          .getFog()
          .addCommand(spatial, buffCommand);
    }
  }