[56] | 1 | /* |
---|
| 2 | * Abuse - dark 2D side-scrolling platform game |
---|
| 3 | * Copyright (c) 1995 Crack dot Com |
---|
| 4 | * |
---|
| 5 | * This software was released into the Public Domain. As with most public |
---|
| 6 | * domain software, no warranty is made or implied by Crack dot Com or |
---|
| 7 | * Jonathan Clark. |
---|
| 8 | */ |
---|
| 9 | |
---|
| 10 | #include "config.h" |
---|
| 11 | |
---|
[2] | 12 | #include "ability.hpp" |
---|
| 13 | #include "chars.hpp" |
---|
| 14 | |
---|
| 15 | /*int abil[TOTAL_OBJECTS*TOTAL_ABILITIES]= { |
---|
| 16 | / hp starta stopa jumpxv jumpyv crouch_tops run_tops jmp_tops wlk_tops / |
---|
| 17 | / human / 50, 3, 4, 8, -24, 3, 6, 8, 4, |
---|
| 18 | / iguana / 4, 3, 4, 10, -34, 0, 8, 10, 6, |
---|
| 19 | / who / 2, 2, 4, 20, 0, 0, 18, 20, 18, |
---|
| 20 | |
---|
| 21 | / account1 / 3, 3, 4, 10, -20, 0, 6, 8, 5, |
---|
| 22 | / cop / 6, 3, 4, 10, -14, 0, 6, 20, 6, |
---|
| 23 | / laser / 2, 0, 0, 0, 0, 0, 0, 0, 0, |
---|
| 24 | / elevator / 2, 2, 2, 0, 0, 0, 1, 1, 1, |
---|
| 25 | / sensor / 0, 0, 0, 0, 0, 0, 0, 0, 0, |
---|
| 26 | / elcontrol / 0, 0, 0, 0, 0, 0, 0, 0, 0, |
---|
| 27 | / no type / 0, 0, 0, 0, 0, 0, 0, 0, 0 |
---|
| 28 | } ;*/ |
---|
| 29 | |
---|
| 30 | |
---|
[39] | 31 | char const *ability_names[TOTAL_ABILITIES] = |
---|
| 32 | { |
---|
| 33 | "start_hp", "start_accel", "stop_accel", |
---|
| 34 | "jump_xvel", "jump_yvel", |
---|
| 35 | "run_top_speed", "jump_top_speed", |
---|
[2] | 36 | "tint_color", |
---|
| 37 | "push_xrange", |
---|
[39] | 38 | "walk_top_speed" |
---|
| 39 | }; |
---|
[2] | 40 | |
---|
| 41 | |
---|
| 42 | long abil_def[TOTAL_ABILITIES]= |
---|
| 43 | {6, 3, 4, 2, -16, 10, 6, 0, |
---|
| 44 | /* hp starta stopa jumpxv jumpyv run_tops jmp_tops blood_type */ |
---|
| 45 | |
---|
| 46 | /* push_xrange wlk_tops */ |
---|
| 47 | 0, 6 }; |
---|
| 48 | |
---|
| 49 | long get_ability_default(ability a) |
---|
| 50 | { |
---|
| 51 | return abil_def[a]; |
---|
| 52 | } |
---|
| 53 | |
---|
| 54 | long get_ability(int who, ability a) |
---|
| 55 | { |
---|
| 56 | return figures[who]->abil[a]; |
---|
| 57 | } |
---|
| 58 | |
---|
| 59 | |
---|
| 60 | |
---|
| 61 | |
---|
| 62 | |
---|
| 63 | |
---|
| 64 | |
---|
| 65 | |
---|
| 66 | |
---|
| 67 | |
---|