Writes a player_state to a file.
(RandomAccessFile f)
| 139 | |
| 140 | /** Writes a player_state to a file.*/ |
| 141 | public void write(RandomAccessFile f) throws IOException { |
| 142 | pmove.write(f); |
| 143 | |
| 144 | f.writeFloat(viewangles[0]); |
| 145 | f.writeFloat(viewangles[1]); |
| 146 | f.writeFloat(viewangles[2]); |
| 147 | |
| 148 | f.writeFloat(viewoffset[0]); |
| 149 | f.writeFloat(viewoffset[1]); |
| 150 | f.writeFloat(viewoffset[2]); |
| 151 | |
| 152 | f.writeFloat(kick_angles[0]); |
| 153 | f.writeFloat(kick_angles[1]); |
| 154 | f.writeFloat(kick_angles[2]); |
| 155 | |
| 156 | f.writeFloat(gunangles[0]); |
| 157 | f.writeFloat(gunangles[1]); |
| 158 | f.writeFloat(gunangles[2]); |
| 159 | |
| 160 | f.writeFloat(gunoffset[0]); |
| 161 | f.writeFloat(gunoffset[1]); |
| 162 | f.writeFloat(gunoffset[2]); |
| 163 | |
| 164 | f.writeInt(gunindex); |
| 165 | f.writeInt(gunframe); |
| 166 | |
| 167 | f.writeFloat(blend[0]); |
| 168 | f.writeFloat(blend[1]); |
| 169 | f.writeFloat(blend[2]); |
| 170 | f.writeFloat(blend[3]); |
| 171 | |
| 172 | f.writeFloat(fov); |
| 173 | |
| 174 | f.writeInt(rdflags); |
| 175 | |
| 176 | for (int n= 0; n < Defines.MAX_STATS; n++) |
| 177 | f.writeShort(stats[n]); |
| 178 | } |
| 179 | |
| 180 | @Override |
| 181 | public boolean equals(Object o) { |
nothing calls this directly
no test coverage detected