This file is indexed.

/usr/lib/games/solarwolf/objtext.py is in solarwolf 1.5-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#text class

import pygame
from pygame.locals import *
import game, gfx, txt

fonts = []
availpos = game.arena.centerx, 70
availpos_start = availpos
numtexts = 0

def load_game_resources():
    #load ship graphics
    global fonts
    fonts = [txt.Font('serif', 24, bold=0)]


class Text:
    def __init__(self, message):
        global availpos, numtexts
        bgd = 0, 0, 0
        self.img, self.rect = fonts[0].text((128, 255, 255), message, availpos)
        if gfx.surface.get_bytesize() > 1:
            self.img.set_alpha(128, RLEACCEL)
        self.clocks = game.text_length
        self.dead = 0
        availpos = availpos[0], availpos[1] + self.rect.height + 10
        numtexts += 1

    def __del__(self):
        global availpos, numtexts
        numtexts -= 1
        if not numtexts:
            availpos = availpos_start

    def erase(self, background):
        r = background(self.rect)
        if self.dead:
            gfx.dirty(r)

    def draw(self, gfx):
        r = gfx.surface.blit(self.img, self.rect)
        gfx.dirty(r)

    def tick(self, speedadjust):
        self.clocks -= 1
        runtime = game.text_length - self.clocks
        if runtime < 15 and gfx.surface.get_bytesize()>1:
            self.img.set_alpha(runtime*13)
        elif self.clocks < 15 :
            if self.clocks >= 0 and gfx.surface.get_bytesize()>1:
                self.img.set_alpha(self.clocks*13)
            self.dead = self.clocks <= 0