Portfolio Code | Clement Colmerauer
Repositories
Site
Kata refactoring
Code
Commits
Branches
Tags
Search
Tree:
023ff0d
Branches
Tags
master
Kata refactoring
build
classes
java
main
re
forestier
edu
rpg
Manager.class
Ajout assertion non null pour méthode, économie sur test unitaire
Clement Colmerauer
commited
023ff0d
at 2024-12-13 12:29:53
Manager.class
Blame
History
Raw
��� 7 � + E F G H I @ J K L M N O @ P , Q @ R S T @ U @ V @ W @ X Y Z [ \ ] ^ _ ` a b c d e f g h i j k l m n o p q r s t u v InnerClasses objectList [Lre/forestier/edu/rpg/Item; $assertionsDisabled Z <init> ()V Code LineNumberTable LocalVariableTable this Lre/forestier/edu/rpg/Manager; majFinDeTour (Lre/forestier/edu/rpg/Player;)V potentialHeal I player Lre/forestier/edu/rpg/Player; StackMapTable w <clinit> SourceFile Manager.java NestMembers 2 3 0 1 java/lang/AssertionError Player must be non null 2 x y z { | } Le joueur est KO ! ~ � � z � � � � � � z � � � z � � � � re/forestier/edu/rpg/Item Holy Elixir 2 � � � � Magic Bow re/forestier/edu/rpg/Manager � � � Magic bow Heal by 1/8th of your HP � � � 2 � Lookout Ring Prevents surprise attacks Scroll of Stupidity INT-2 when applied to an enemy Draupnir Increases XP gained by 100% Magic Charm Magic +10 for 5 rounds Rune Staff of Curse 1May burn your ennemies... Or yourself. Who knows? Combat Edge Well, that's an edge Recover your HP . / java/lang/Object re/forestier/edu/rpg/Manager$1 re/forestier/edu/rpg/Player (Ljava/lang/Object;)V getCurrentHealthPoints ()I java/lang/System out Ljava/io/PrintStream; java/io/PrintStream println (Ljava/lang/String;)V getMaxHealthPoints $$SwitchMap$re$forestier$edu$rpg$Jobs [I getAvatarClass ()Lre/forestier/edu/rpg/Jobs; re/forestier/edu/rpg/Jobs ordinal heal (I)V getLevel hurt getInventory ()Ljava/util/ArrayList; java/util/ArrayList contains (Ljava/lang/Object;)Z java/lang/Class desiredAssertionStatus ()Z re/forestier/edu/lib/Natural valueOf !(I)Lre/forestier/edu/lib/Natural; c(Ljava/lang/String;Ljava/lang/String;Lre/forestier/edu/lib/Natural;Lre/forestier/edu/lib/Natural;)V ! + . / 0 1 2 3 4 / *� � 5 6 7 8 9 : 4 ^ �� � *� � Y� �*� � � � �*� *� l� �� *� � .� � 1 Q*� *� � Z*� � R*� *� � Y� � � :*� � 2*� *� � Y� � � *� ld<*� � � � 5 F # $ 1 X "