You need to clean the code up a bit and remove all errors from it.
* lines 29 through 38 of the Svet1 class declare local references to objects that are not later used within the method; those lines can be removed;
* lines 45 and 46, plus lines 53 and 54, of the Svet1 class call 'getX' and 'getY' which are not defined in the Svet1 class (those are only Actor and MouseInfo class methods, they are not World class methods and cannot be called on a world object (from a subclass of World);
* in the PocZiv class, 'text' and 'hodnota' are used multiple times throughout, but are not declared anywhere within the class;
* line 16 in the PocZiv class is unreachable (you have an unconditional 'return' statement before it)
* line 38 of the Hrac class tries to decrement a class; a class does not contain a numeric value; though, an object from the class may contain a field that holds a numeric value; you need a reference to that object to call a method that changes the field of that object by the given amount (I presume that would be a corrected 'snizeniHodnotty(int)' method); you may need to use the World class 'getObjects' method to retain the reference needed for the object by 'get'ting an element from the List object returned;
* lines 18 through 20 of the Zivoty class declare varaibles 'z', 'X' and 'Y' that are not used later in the method; those lines can be removed;
* line 25 of the Zivoty class has the same problem as line 38 of the Hrac class; you cannot increment a class; you can only increment numeric values;


