12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- /// <reference path="../ContentUnit.ts" />
- /// <reference path="../../Things/Person.ts" />
- /// <reference path="../../Things/Bodypart/SexHole.ts" />
- /// <reference path="../../Things/Bodypart/SexStick.ts" />
- class CombatPokeUnit extends ContentUnit {
- private target : ContentDifferential = new ContentDifferential(Person);
- private markers : ContentDifferential = new ContentDifferential();
- public constructor () {
- super();
- }
- public setTarget (it : Thing | typeof Thing) {
- this.target = new ContentDifferential(it);
- return this;
- }
- public getTarget () {
- return this.target;
- }
- public addMarker (...marker : Array<ContentMarker | AdaptiveDifferential>) {
- this.markers.addNoun(...marker);
- return this;
- }
- public getMarkers () {
- return [...this.markers.nouns];
- }
- public getScore () {
- return this.target.getScore() + this.markers.getScore();
- }
- public isMatch (cu : CombatPokeUnit) {
- console.warn("Chegking :)");
- if (cu instanceof CombatPokeUnit) {
- console.log(this.markers.nouns, cu.markers.nouns);
- return this.target.isMatch(cu.target) &&
- this.markers.isMatch(cu.markers);
- }
- return false;
- }
- }
|